mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-06-08 11:17:27 +00:00
Merge pull request #1068 from Hestia-Homes/feature/magicplan-trigger
Reinstate deleted s3 policy so it can be unattached from entities
This commit is contained in:
commit
92e5aa6db2
1 changed files with 21 additions and 5 deletions
|
|
@ -280,6 +280,21 @@ output "retrofit_energy_assessments_bucket_name" {
|
|||
description = "Name of the retrofit energy assessments bucket"
|
||||
}
|
||||
|
||||
module "energy_assessments_s3_write" {
|
||||
source = "../modules/s3_iam_policy"
|
||||
|
||||
policy_name = "EnergyAssessmentsWriteS3"
|
||||
policy_description = "Allow lambdas to write to retrofit energy assessments bucket"
|
||||
bucket_arns = ["arn:aws:s3:::retrofit-energy-assessments-${var.stage}"]
|
||||
actions = ["s3:PutObject", "s3:AbortMultipartUpload"]
|
||||
resource_paths = ["/*"]
|
||||
}
|
||||
|
||||
output "energy_assessments_s3_write_arn" {
|
||||
value = module.energy_assessments_s3_write.policy_arn
|
||||
}
|
||||
|
||||
|
||||
|
||||
# Set up the route53 record for the API
|
||||
module "route53" {
|
||||
|
|
@ -568,18 +583,19 @@ module "pashub_to_ara_registry" {
|
|||
stage = var.stage
|
||||
}
|
||||
|
||||
module "energy_assessments_s3_write" {
|
||||
#### TEMP - need to unattach from entities before this can be delete ####
|
||||
module "pashub_to_ara_s3_write" {
|
||||
source = "../modules/s3_iam_policy"
|
||||
|
||||
policy_name = "EnergyAssessmentsWriteS3"
|
||||
policy_description = "Allow lambdas to write to retrofit energy assessments bucket"
|
||||
policy_name = "PashubToAraWriteS3"
|
||||
policy_description = "Allow PasHub to ARA Lambda to write to retrofit energy assessments bucket"
|
||||
bucket_arns = ["arn:aws:s3:::retrofit-energy-assessments-${var.stage}"]
|
||||
actions = ["s3:PutObject", "s3:AbortMultipartUpload"]
|
||||
resource_paths = ["/*"]
|
||||
}
|
||||
|
||||
output "energy_assessments_s3_write_arn" {
|
||||
value = module.energy_assessments_s3_write.policy_arn
|
||||
output "pashub_to_ara_s3_write_arn" {
|
||||
value = module.pashub_to_ara_s3_write.policy_arn
|
||||
}
|
||||
|
||||
################################################
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue