-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: create separate parameters for every org_info key
- Loading branch information
1 parent
2000820
commit b0a638e
Showing
4 changed files
with
21 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,17 @@ | ||
module "naming_conventions" { | ||
source = "fivexl/naming-conventions/aws" | ||
version = "0.0.1" | ||
version = "0.0.2" | ||
} | ||
|
||
module "shared_parameter" { | ||
source = "../../shared_parameter" | ||
module "shared_parameters" { | ||
source = "../../shared_parameter" | ||
for_each = local.org_info | ||
|
||
parameter_name = module.naming_conventions.org_info_ssm_parameter_name | ||
resource_share_name = module.naming_conventions.org_info_ram_resource_share_name | ||
parameter_description = "Organization information including ARN, root ID, org ID, and account IDs" | ||
parameter_name = module.naming_conventions.org_info_ssm_parametes_names[each.key] | ||
resource_share_name = module.naming_conventions.org_info_ram_resource_share_names[each.key] | ||
parameter_description = "Shared SSM parameter for ${each.key}" | ||
parameter_key_id = var.shared_kms_key_arn | ||
parameter_value = jsonencode(local.org_info) | ||
parameter_value = jsonencode(each.value) | ||
principals_to_share_with = var.principals_to_share_with | ||
|
||
tags = var.tags | ||
tags = var.tags | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters