Skip to content

Replace hardcoded ECR account ID with region-based mapping#1055

Merged
TRNWWZ merged 1 commit intoaws:mainfrom
gnasrash:fix/ecr-account-id-by-region
Feb 9, 2026
Merged

Replace hardcoded ECR account ID with region-based mapping#1055
TRNWWZ merged 1 commit intoaws:mainfrom
gnasrash:fix/ecr-account-id-by-region

Conversation

@gnasrash
Copy link
Copy Markdown
Contributor

@gnasrash gnasrash commented Feb 5, 2026

  • Add region-to-account mapping for ap-east-1, af-south-1, eu-south-2, ap-southeast-5, ap-southeast-7, eu-central-2
  • Replace hardcoded 058264401727 with ECR_ACCOUNT_ID variable in docker-compose.yaml
  • Update start-workflows-container.sh to set ECR_ACCOUNT_ID based on AWS_REGION
  • Apply changes to v2, v3, and v4 templates

Description

[Provide a brief description of the changes]

Type of Change

  • Image update - Bug fix
  • Image update - New feature
  • Image update - Breaking change
  • SMD image build tool update
  • Documentation update

Release Information

Does this change need to be included in patch version releases? By default, any pull requests will only be added to the next SMD image minor version release once they are merged in template folder. Only critical bug fix or security update should be applied to new patch versions of existed image minor versions.

  • Yes (Critical bug fix or security update)
  • No (New feature or non-critical change)
  • N/A (Not an image update)

If yes, please explain why:
[Explain the criticality of this change and why it should be included in patch releases]

How Has This Been Tested?

[Describe the tests you ran]

Checklist:

  • My code follows the style guidelines of this project
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • I have added tests that prove my fix is effective or that my feature works

Test Screenshots (if applicable):

I have tested the changes by building the CPU image and deploying on my clouddesktop and ensuring that environment variable is set correctly

Related Issues

[Link any related issues here]

Additional Notes

[Any additional information that might be helpful for reviewers]

@gnasrash gnasrash requested a review from a team as a code owner February 5, 2026 21:05
"ap-southeast-7": "963912059534",
"eu-central-2": "736184861541"
}
}
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

do we want to rename the file to make it more clear it's for smus Workflows local runner images, maybe like: workflows-local-runner-image-ecr-accounts.json

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

also, will need SMD team's review on maintaining a hardcoded account list

@gnasrash gnasrash force-pushed the fix/ecr-account-id-by-region branch from 64994f0 to 51083e9 Compare February 6, 2026 21:44
TRNWWZ
TRNWWZ previously approved these changes Feb 6, 2026
- Add region-to-account mapping for ap-east-1, af-south-1, eu-south-2, ap-southeast-5, ap-southeast-7, eu-central-2
- Replace hardcoded 058264401727 with ECR_ACCOUNT_ID variable in docker-compose.yaml
- Update start-workflows-container.sh to set ECR_ACCOUNT_ID based on AWS_REGION
- Apply changes to v2, v3, and v4 templates
@TRNWWZ TRNWWZ merged commit f2f5d0c into aws:main Feb 9, 2026
0 of 2 checks passed
TRNWWZ pushed a commit that referenced this pull request Feb 9, 2026
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.

3 participants