push policy

This commit is contained in:
Jun-te Kim 2026-02-12 12:30:28 +00:00
parent 958ab72e0a
commit d9708fe516
2 changed files with 8 additions and 2 deletions

View file

@ -44,3 +44,9 @@ module "address2uprn" {
},
)
}
# Attach S3 read policy to the Lambda execution role
resource "aws_iam_role_policy_attachment" "address2uprn_read_and_write" {
role = module.lambda.role_name
policy_arn = data.terraform_remote_state.shared.outputs.address_2_uprn_s3_read_and_write_arn
}

View file

@ -316,8 +316,8 @@ module "address2uprn_s3_read_and_write" {
resource_paths = ["/*"]
}
output "postcode_splitter_s3_read_arn" {
value = module.postcode_splitter_s3_read.policy_arn
output "address_2_uprn_s3_read_and_write_arn" {
value = module.address2uprn_s3_read_and_write.policy_arn
}
################################################