mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-06-08 11:17:27 +00:00
push policy
This commit is contained in:
parent
958ab72e0a
commit
d9708fe516
2 changed files with 8 additions and 2 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
@ -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
|
||||
}
|
||||
|
||||
################################################
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue