diff --git a/modules/iam-users/main.tf b/modules/iam-users/main.tf index 25514d5..9d40aab 100644 --- a/modules/iam-users/main.tf +++ b/modules/iam-users/main.tf @@ -187,41 +187,68 @@ resource "aws_iam_policy" "s3_full_access_boundary" { path = "/" description = "Permission boundary policy for the BC Gov IAM user service" - policy = jsonencode({ - Version = "2012-10-17", - Statement = [ - { - Sid = "S3FullAccess", - Effect = "Allow", - Action = "s3:*", - Resource = "*" - }, - { - Sid = "SESFullAccess", - Effect = "Allow", - Action = "ses:*", - Resource = "*" - }, - { - Sid = "BedrockFullAccess", - Effect = "Allow", - Action = "bedrock:*", - Resource = "*" - }, - { - Sid = "SSMandKMSAccess", - Effect = "Allow", - Action = [ - "ssm:GetParameter", - "ssm:GetParameters", - "ssm:GetParametersByPath", - "kms:Decrypt" - ], - Resource = [ - "arn:aws:ssm:*:*:parameter/iam_users/*", - "arn:aws:kms:*:*:key/*" - ] - } - ] - }) + policy = <