Skip to content

Commit 8b30d8c

Browse files
committed
add write policy for pvnet forecast
1 parent b0a044d commit 8b30d8c

File tree

1 file changed

+12
-4
lines changed
  • terraform/nowcasting/development

1 file changed

+12
-4
lines changed

terraform/nowcasting/development/main.tf

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -521,10 +521,6 @@ source = "../../modules/services/ecs_task"
521521
{
522522
id : module.forecasting_models_bucket.bucket_id,
523523
access_policy_arn : module.forecasting_models_bucket.read_policy_arn
524-
},
525-
{
526-
id : module.forecasting_models_bucket.bucket_id,
527-
access_policy_arn : module.forecasting_models_bucket.write_policy_arn
528524
}
529525
]
530526

@@ -572,6 +568,10 @@ source = "../../modules/services/ecs_task"
572568
{
573569
id : module.s3.s3-sat-bucket.id,
574570
access_policy_arn : module.s3.iam-policy-s3-sat-read.arn
571+
},
572+
{
573+
id : module.forecasting_models_bucket.bucket_id,
574+
access_policy_arn : module.forecasting_models_bucket.write_policy_arn
575575
}
576576
]
577577

@@ -622,6 +622,10 @@ source = "../../modules/services/ecs_task"
622622
{
623623
id : module.s3.s3-nwp-bucket.id,
624624
access_policy_arn : module.s3.iam-policy-s3-nwp-read.arn
625+
},
626+
{
627+
id : module.forecasting_models_bucket.bucket_id,
628+
access_policy_arn : module.forecasting_models_bucket.write_policy_arn
625629
}
626630
]
627631

@@ -676,6 +680,10 @@ source = "../../modules/services/ecs_task"
676680
{
677681
id : module.s3.s3-sat-bucket.id,
678682
access_policy_arn : module.s3.iam-policy-s3-sat-read.arn
683+
},
684+
{
685+
id : module.forecasting_models_bucket.bucket_id,
686+
access_policy_arn : module.forecasting_models_bucket.write_policy_arn
679687
}
680688

681689
]

0 commit comments

Comments
 (0)