Skip to content

feat: Add options to pass task and execution role ARNs #372

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

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

mskrip
Copy link

@mskrip mskrip commented Feb 19, 2025

Issue #, if available:
Close #183

Description of changes:
Adds options to set task and execution IAM role ARNs on the rendered task definition. Unfortunately, I noticed #293 exists only after I had already made this, this PR contains also tests for this feature and hopefully makes other tests pass.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@kg-aws
Copy link
Contributor

kg-aws commented Aug 14, 2025

PR similar to #293

@kg-aws kg-aws self-requested a review August 14, 2025 21:08
@@ -119,6 +121,14 @@ async function run() {
containerDef.command = command.split(' ')
}

if (taskRoleArn) {
containerDef.taskRoleArn = taskRoleArn;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we add a regex validation for the arn? Need appropriate unit tests as well for these changes.

}

if (executionRoleArn) {
containerDef.executionRoleArn = executionRoleArn;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we add a regex validation for the arn? Need appropriate unit tests as well for these changes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

add inputs executionRoleArn and taskRoleArn
2 participants