mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-07-12 13:29:04 +00:00
Merge pull request #1142 from Hestia-Homes/feature/landlord_data
iam permissions for my lambda to import location
This commit is contained in:
commit
8accb51383
1 changed files with 7 additions and 4 deletions
|
|
@ -513,10 +513,13 @@ module "landlord_overrides_s3_read" {
|
||||||
source = "../modules/s3_iam_policy"
|
source = "../modules/s3_iam_policy"
|
||||||
|
|
||||||
policy_name = "LandlordOverridesReadS3"
|
policy_name = "LandlordOverridesReadS3"
|
||||||
policy_description = "Allow landlord description overrides Lambda to read from retrofit-data bucket"
|
policy_description = "Allow landlord description overrides Lambda to read the original upload CSV from retrofit-plan-inputs (and retrofit-data) bucket"
|
||||||
bucket_arns = ["arn:aws:s3:::retrofit-data-${var.stage}"]
|
bucket_arns = [
|
||||||
actions = ["s3:GetObject", "s3:ListBucket"]
|
"arn:aws:s3:::retrofit-plan-inputs-${var.stage}",
|
||||||
resource_paths = ["/*"]
|
"arn:aws:s3:::retrofit-data-${var.stage}",
|
||||||
|
]
|
||||||
|
actions = ["s3:GetObject", "s3:ListBucket"]
|
||||||
|
resource_paths = ["/*"]
|
||||||
}
|
}
|
||||||
|
|
||||||
output "landlord_overrides_s3_read_arn" {
|
output "landlord_overrides_s3_read_arn" {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue