Skip to content

Commit

Permalink
Merge pull request #593 from wri/fix-ecs-role-perm
Browse files Browse the repository at this point in the history
give ecs task role permission to run on on-demand compute job queue
  • Loading branch information
solomon-negusse authored Oct 10, 2024
2 parents 28714da + 50ab46a commit b73a890
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 10 deletions.
19 changes: 10 additions & 9 deletions terraform/data.tf
Original file line number Diff line number Diff line change
Expand Up @@ -96,15 +96,16 @@ data "template_file" "container_definition" {
data "template_file" "task_batch_policy" {
template = file("${path.root}/templates/run_batch_policy.json.tmpl")
vars = {
aurora_job_definition_arn = module.batch_job_queues.aurora_job_definition_arn
aurora_job_queue_arn = module.batch_job_queues.aurora_job_queue_arn
aurora_job_queue_fast_arn = module.batch_job_queues.aurora_job_queue_fast_arn
data_lake_job_definition_arn = module.batch_job_queues.data_lake_job_definition_arn
data_lake_job_queue_arn = module.batch_job_queues.data_lake_job_queue_arn
tile_cache_job_definition_arn = module.batch_job_queues.tile_cache_job_definition_arn
tile_cache_job_queue_arn = module.batch_job_queues.tile_cache_job_queue_arn
pixetl_job_definition_arn = module.batch_job_queues.pixetl_job_definition_arn
pixetl_job_queue_arn = module.batch_job_queues.pixetl_job_queue_arn
aurora_job_definition_arn = module.batch_job_queues.aurora_job_definition_arn
aurora_job_queue_arn = module.batch_job_queues.aurora_job_queue_arn
aurora_job_queue_fast_arn = module.batch_job_queues.aurora_job_queue_fast_arn
data_lake_job_definition_arn = module.batch_job_queues.data_lake_job_definition_arn
data_lake_job_queue_arn = module.batch_job_queues.data_lake_job_queue_arn
tile_cache_job_definition_arn = module.batch_job_queues.tile_cache_job_definition_arn
tile_cache_job_queue_arn = module.batch_job_queues.tile_cache_job_queue_arn
pixetl_job_definition_arn = module.batch_job_queues.pixetl_job_definition_arn
pixetl_job_queue_arn = module.batch_job_queues.pixetl_job_queue_arn
on_demand_compute_job_queue_arn = module.batch_job_queues.on_demand_compute_job_queue_arn
}
depends_on = [
module.batch_job_queues.aurora_job_definition,
Expand Down
4 changes: 3 additions & 1 deletion terraform/templates/run_batch_policy.json.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@
"${tile_cache_job_definition_arn}",

"${pixetl_job_queue_arn}",
"${pixetl_job_definition_arn}"
"${pixetl_job_definition_arn}",

"${on_demand_compute_job_queue_arn}"
]
},
{
Expand Down

0 comments on commit b73a890

Please sign in to comment.