-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathparameterstorereadonly_roles.tf
33 lines (27 loc) · 1.09 KB
/
parameterstorereadonly_roles.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# ------------------------------------------------------------------------------
# Create the IAM roles and policies that allow read-only access
# to the specified SSM Parameter Store parameters in the
# Images accounts (Production and Staging).
# ------------------------------------------------------------------------------
module "parameterstorereadonly_role_production" {
source = "github.com/cisagov/ssm-read-role-tf-module"
count = local.create_parameterstorereadonly_role_resources
providers = {
aws = aws.images-production-ssm
}
account_ids = [local.users_account_id]
entity_name = module.ci_user.user.name
iam_usernames = [module.ci_user.user.name]
ssm_names = var.ssm_parameters
}
module "parameterstorereadonly_role_staging" {
source = "github.com/cisagov/ssm-read-role-tf-module"
count = local.create_parameterstorereadonly_role_resources
providers = {
aws = aws.images-staging-ssm
}
account_ids = [local.users_account_id]
entity_name = module.ci_user.user.name
iam_usernames = [module.ci_user.user.name]
ssm_names = var.ssm_parameters
}