Skip to content

Commit 96651a4

Browse files
committed
Set the BUILDKITE_PLUGIN_S3_SECRETS_REGION var in the environment hook
1 parent e43c9fd commit 96651a4

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

packer/linux/conf/buildkite-agent/hooks/environment

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ done
6969

7070
if [[ -n "${BUILDKITE_SECRETS_BUCKET:-}" && "${SECRETS_PLUGIN_ENABLED:-}" == "1" ]] ; then
7171
export BUILDKITE_PLUGIN_S3_SECRETS_BUCKET="$BUILDKITE_SECRETS_BUCKET"
72+
export BUILDKITE_PLUGIN_S3_SECRETS_REGION="$BUILDKITE_SECRETS_BUCKET_REGION"
7273

7374
# shellcheck source=/dev/null
7475
source /usr/local/buildkite-aws-stack/plugins/secrets/hooks/environment

packer/windows/conf/buildkite-agent/hooks/environment

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ done
4747

4848
if [[ -n "${BUILDKITE_SECRETS_BUCKET:-}" && "${SECRETS_PLUGIN_ENABLED:-}" == "1" ]] ; then
4949
export BUILDKITE_PLUGIN_S3_SECRETS_BUCKET="$BUILDKITE_SECRETS_BUCKET"
50+
export BUILDKITE_PLUGIN_S3_SECRETS_REGION="$BUILDKITE_SECRETS_BUCKET_REGION"
5051

5152
# shellcheck source=/dev/null
5253
source /usr/local/buildkite-aws-stack/plugins/secrets/hooks/environment

0 commit comments

Comments
 (0)