Skip to content

Commit

Permalink
Additional NF AWS execution permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
mluypaert committed May 9, 2024
1 parent cd32513 commit 4b411e0
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions pipeline/aws_infra/cdk_classes/aws_batch.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,17 +124,25 @@ def __init__(self, scope: Stack, env_suffix: str, shared_work_dir_bucket: Option
iam.PolicyStatement(
sid="AllowBatchJobMgmt",
effect=iam.Effect.ALLOW,
actions=['batch:CancelJob', 'batch:SubmitJob', 'batch:TerminateJob',
'batch:ListJobs', 'batch:DescribeJobs',
'batch:RegisterJobDefinition', 'batch:DescribeJobDefinitions'],
actions=['batch:CancelJob', 'batch:SubmitJob', 'batch:TerminateJob', 'batch:ListJobs',
'batch:RegisterJobDefinition', 'batch:DeregisterJobDefinition'],
resources=['*']
)
)
nf_aws_execution_statements.append(
iam.PolicyStatement(
sid="AllowQueueAndComputeEnvDescribe",
sid="AllowDescribeAllBatchResources",
effect=iam.Effect.ALLOW,
actions=['batch:DescribeJobQueues', 'batch:DescribeComputeEnvironments'],
actions=['batch:DescribeJobQueues', 'batch:DescribeComputeEnvironments',
'batch:DescribeJobDefinitions', 'batch:DescribeJobs'],
resources=['*']
)
)
nf_aws_execution_statements.append(
iam.PolicyStatement(
sid="AllowBatchResourceTagMgmt",
effect=iam.Effect.ALLOW,
actions=['batch:TagResource', 'batch:UntagResource', 'batch:ListTagsForResource'],
resources=['*']
)
)
Expand Down

0 comments on commit 4b411e0

Please sign in to comment.