Skip to content

Commit 545469f

Browse files
author
Henry Mollman
committed
PR comments
1 parent 489bc43 commit 545469f

File tree

4 files changed

+3
-4
lines changed

4 files changed

+3
-4
lines changed

consul-resources/templates/get-aws-creds.sh.ctmpl

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
#!/bin/bash
22
set -e
33

4-
# WARNING: do not echo anything except ORG ID here
5-
64
{{ with vault "aws_1h/creds/dock-init" }}
75
export AWS_ACCESS_KEY="{{ .Data.access_key }}"
86
export AWS_SECRET_KEY="{{ .Data.secret_key }}"

init.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ main() {
6464
consul::get_environment
6565
consul::configure_consul_template
6666
dock::generate_certs
67-
aws::get_org_tags
67+
aws::get_org_ids
6868
dock::set_hostname
6969
dock::set_config_org
7070
vault::store_private_registry_token

lib/aws.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ aws::get_aws_creds() {
3131
}
3232

3333
# Fetches the org tags from EC2 and sets it to the `ORG_ID` environment variable
34-
aws::get_org_tags() {
34+
aws::get_org_ids() {
3535
log::info "Setting Github Org ID"
3636

3737
# Generate the org-tag fetching script

lib/cleanup.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ cleanup::exit_trap() {
1313
"${DOCK_INIT_BASE}"/consul-resources/vault/**/auth-token \
1414
"${DOCK_INIT_BASE}"/consul-resources/vault/**/user-vault-auth-token \
1515
"${DOCK_INIT_BASE}"/consul-resources/vault/**/token-* \
16+
"${DOCK_INIT_BASE}"/util/get-aws-creds.sh \
1617
"${DOCK_INIT_BASE}"/key/rollbar.token
1718
fi
1819
}

0 commit comments

Comments
 (0)