Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

give ecs task role permission to run on on-demand compute job queue #593

Merged
merged 3 commits into from
Oct 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading