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

MIDRC-672 Fix ECR access job role name conflict #2515

Merged
merged 2 commits into from
Mar 28, 2024

Conversation

paulineribeyre
Copy link
Contributor

Link to JIRA ticket if there is one: https://ctds-planx.atlassian.net/browse/MIDRC-672

Bug Fixes

  • ECR access job: fix conflict during role creating when the role name already exists for a different namespace in the same AWS account

@@ -115,16 +115,16 @@ EOF
# @return the resulting json from awscli
##
function create_role(){
local role_name="${vpc_name}-${SERVICE_ACCOUNT_NAME}-role"
local role_name="${1}"
Copy link
Contributor Author

Choose a reason for hiding this comment

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

the role name was already an argument, it just wasn't used:

created_role_json="$(create_role ${role_name})" || return $?

@paulineribeyre paulineribeyre merged commit 79f305a into master Mar 28, 2024
5 checks passed
@paulineribeyre paulineribeyre deleted the fix/role-conflict branch March 28, 2024 20:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants