Skip to content

Commit

Permalink
Initial release
Browse files Browse the repository at this point in the history
  • Loading branch information
snemetz committed Dec 13, 2018
1 parent 4d3fac6 commit 1c3c3a3
Show file tree
Hide file tree
Showing 6 changed files with 1 addition and 8 deletions.
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ module "organizational-unit-members" {
|------|-------------|:----:|:-----:|:-----:|
| account\_list | List of member account and organizational units they should be into. Format: {account id}:{ou name} {account id}:{ou name} | string | - | yes |
| aws\_profile | AWS profile in local credentials file that has rights to master account | string | - | yes |
| aws\_region | AWS region | string | `us-east-1` | no |

<!-- END OF PRE-COMMIT-TERRAFORM DOCS HOOK -->
<!-- BEGINNING OF PRE-COMMIT-TERRAFORM GRAPH HOOK -->
Expand Down
1 change: 0 additions & 1 deletion examples/basic/main.tf
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
module "example" {
source = "../../"
aws_profile = "${var.aws_profile}"
aws_region = "${var.aws_region}"
account_list = "${var.account_list}"
}
File renamed without changes.
Binary file modified resource-plan-graph.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion scripts/ou.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ for ou in ${ou_exists_list}; do
done

# ?? account_exists_list=$(aws organizations list-accounts --profile appzen-admin |jq -r .)
for account_ou in $(account_list); do
for account_ou in ${account_list}; do
# if account not exist, create - Done by terraform
# if account not in ou then move - How to check
# list-accounts-for-parent or list-children to check if account is in OU
Expand Down
5 changes: 0 additions & 5 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,6 @@ variable "aws_profile" {
description = "AWS profile in local credentials file that has rights to master account"
}

variable "aws_region" {
description = "AWS region"
default = "us-east-1"
}

variable "account_list" {
description = "List of member account and organizational units they should be into. Format: {account id}:{ou name} {account id}:{ou name}"
}

0 comments on commit 1c3c3a3

Please sign in to comment.