Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
badra001 committed Feb 24, 2023
1 parent f0e832c commit 73b3e75
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
1 change: 0 additions & 1 deletion share-resources/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ No modules.
| [aws_caller_identity.org_master_account](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/caller_identity) | data source |
| [aws_iam_account_alias.current](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/iam_account_alias) | data source |
| [aws_organizations_organization.org](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/organizations_organization) | data source |
| [aws_organizations_organizational_unit_descendant_accounts.accounts](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/organizations_organizational_unit_descendant_accounts) | data source |
| [aws_organizations_resource_tags.accounts](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/organizations_resource_tags) | data source |
| [aws_organizations_resource_tags.organizational_units](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/organizations_resource_tags) | data source |
| [aws_region.current](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/region) | data source |
Expand Down
7 changes: 7 additions & 0 deletions share-resources/data.org_master.tf
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,10 @@ data "aws_arn" "org_master_account" {
provider = aws.org_master
arn = data.aws_caller_identity.org_master_account.arn
}


# because we cannot delegate an orgs administrator in govcloud, we have to use the org master account and west region
# https://docs.aws.amazon.com/govcloud-us/latest/UserGuide/govcloud-organizations.html
data "aws_organizations_organization" "org" {
provider = aws.org_master
}
2 changes: 1 addition & 1 deletion share-resources/share.tf
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ resource "aws_ram_resource_association" "subnets_accounts" {
# organizational units
#---
locals {
share_organizatonal_unit_map = { for p in setproduct(keys(local.subnets), keys(local.share_ou_arns)) : format("%v:%v", p[0], p[1]) => {
share_organizational_unit_map = { for p in setproduct(keys(local.subnets), keys(local.share_ou_arns)) : format("%v:%v", p[0], p[1]) => {
label = format("%v:%v", p[0], p[1])
subnet_id = p[0]
subnet_arn = local.subnets[p[0]].arn
Expand Down

0 comments on commit 73b3e75

Please sign in to comment.