Consistently Tag Engine Batch jobs
Description
-
Engine tasks should be tagged with standard AGC tags.
-
With these tags in place the WES Adapter IAM roles can be updated to add conditions to reduce the scope of the
batch:TerminateJobpermission.
Use Case
Tagging improves debugging and accounting for workflows
Proposed Solution
If possible include the following tags:
application-name
agc-user-email
agc-user-id
agc-context
agc-project
agc-version
agc-engine-name
agc-workflow-name
then update the wes adapter policy to include conditions. For example:
new PolicyStatement({
effect: Effect.ALLOW,
actions: ["batch:TerminateJob"],
resources: ["*"],
conditions: { StringEquals: { "aws:ResourceTag/application-name": "agc" } },
}),
Other information
Greetings! Sorry to say but this is a very old issue that is probably not getting as much attention as it deserves. We encourage you to check if this is still an issue in the latest release and if you find that this is still a problem, please feel free to open a new one.