-
Notifications
You must be signed in to change notification settings - Fork 1
/
root_s3_bucket_access.tf
39 lines (35 loc) · 1.31 KB
/
root_s3_bucket_access.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
34
35
36
37
38
39
# AWS SSO groups that require access to encrypted s3 buckets need updating with relevant decrypt permissions for KMS s3 Key
locals {
aws_sso_export_bucket_access_roles = [data.aws_ssm_parameter.aws_sso_admin_role.value, data.aws_ssm_parameter.aws_sso_export_role.value]
aws_sso_internal_bucket_access_roles = [data.aws_ssm_parameter.aws_sso_admin_role.value]
}
data "aws_ssm_parameter" "aws_sso_admin_role" {
name = "/${local.environment}/admin_role"
}
data "aws_ssm_parameter" "aws_sso_export_role" {
name = "/${local.environment}/export_role"
}
module "aws_sso_export_roles_ssm_parameters" {
source = "./da-terraform-modules/ssm_parameter"
parameters = [
{
name = "/${local.environment}/admin_role",
description = "AWS SSO admin role. Value to be added manually"
type = "SecureString"
value = "placeholder"
},
{
name = "/${local.environment}/developer_role",
description = "AWS SSO developer role. Value to be added manually"
type = "SecureString"
value = "placeholder"
},
{
name = "/${local.environment}/export_role",
description = "AWS SSO export role. Value to be added manually"
type = "SecureString"
value = "placeholder"
}
]
tags = local.common_tags
}