Skip to content

Conversation

@gibbardsteve
Copy link
Contributor

Added two scripts and updated the README.

set_aws_env.sh - When the user has an AWS credentials file at ~/.aws/credentials that is populated with multiple sets of credentials using the profile nomenclature below. Then this script can be used to set appropriate environment variables in the terminal by specifying profile and environment

[default]
aws_access_key_id = default_accesskey
aws_secret_access_key = default_secretkey
[account_ecr_user]
aws_access_key_id = account_ecr_user_accesskey
aws_secret_access_key = account_ecr_user_secretkey
...

publish_container.sh - When the user has a profile setup in their AWS credential file, this script can be used to build, login and publish an image to ECR. This script requires the user to specify the AWS profile, AWS account number, environment and version that you require the container to be tagged with (e.g v0.0.1).

README.md - Updated with above details.

Copy link
Contributor

@delterr delterr left a comment

Choose a reason for hiding this comment

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

Everything looks good

@gibbardsteve gibbardsteve merged this pull request into master Nov 26, 2024
4 checks passed
@gibbardsteve gibbardsteve deleted the KEH-443-Script-Env-Docker branch November 26, 2024 13:53
TotalDwarf03 pushed a commit that referenced this pull request Aug 22, 2025
* Add scripts to ease setting of variables and publishing docker

* Check for container presence before pushing
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.

2 participants