Skip to content

Use centrally managed AWS Include script#703

Merged
gsavage merged 3 commits into
mainfrom
use-server-aws-include
Mar 17, 2026
Merged

Use centrally managed AWS Include script#703
gsavage merged 3 commits into
mainfrom
use-server-aws-include

Conversation

@gsavage
Copy link
Copy Markdown
Contributor

@gsavage gsavage commented Mar 16, 2026

Several scripts here at Kosli require access to our named AWS accounts; this commit updates the docker-login script to use a copy of the AWS Include script from the "Server" repository, rather than the one stored here. This means that updates to the list of accounts can be handled in one place, and we reduce duplication.

Therefore, this commit also includes the deletion of the AWS Include script from this repository.

The script from the Server repository includes syntax that requires a version of Bash greater than 4, so the hash-bang line here has been updated, too, to use env in order to load the correct version of Bash - this is required on a Mac otherwise we load v3.2

@gsavage gsavage requested a review from Copilot March 16, 2026 09:23
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Copilot wasn't able to review any files in this pull request.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

You can also share your feedback on Copilot code review. Take the survey.

gsavage added 2 commits March 16, 2026 09:29
The AWS include script is part of our larger tooling, but within this
repository it is only used to download images from our "staging" ECRs.

This commit removes other environments and removes some dead code.
On MacOS 26, running /bin/bash will run version 3.2 of Bash.  We need a
later version in order to use the centrally-managed aws-include file, so
in this commit I've updated the hash-bang line to use "env" - on my
machine this loads bash v5.
@gsavage gsavage force-pushed the use-server-aws-include branch from e11e093 to c504dcc Compare March 16, 2026 09:34
Update the docker-login script to use the aws include from the "Server"
repo so that we can manage it centrally and reduce duplication.   There
is one use-case within CI, and that cannot use the centrally-managed
repo, so I've added conditional logic here to detect if we're running in
CI.
@gsavage gsavage requested a review from Copilot March 17, 2026 08:34
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Copilot wasn't able to review any files in this pull request.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

You can also share your feedback on Copilot code review. Take the survey.

@gsavage gsavage merged commit 9142ede into main Mar 17, 2026
10 checks passed
@gsavage gsavage deleted the use-server-aws-include branch March 17, 2026 08:47
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