Skip to content

Commit

Permalink
PR comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Henry Mollman committed May 18, 2017
1 parent 489bc43 commit 545469f
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 4 deletions.
2 changes: 0 additions & 2 deletions consul-resources/templates/get-aws-creds.sh.ctmpl
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
#!/bin/bash
set -e

# WARNING: do not echo anything except ORG ID here

{{ with vault "aws_1h/creds/dock-init" }}
export AWS_ACCESS_KEY="{{ .Data.access_key }}"
export AWS_SECRET_KEY="{{ .Data.secret_key }}"
Expand Down
2 changes: 1 addition & 1 deletion init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ main() {
consul::get_environment
consul::configure_consul_template
dock::generate_certs
aws::get_org_tags
aws::get_org_ids
dock::set_hostname
dock::set_config_org
vault::store_private_registry_token
Expand Down
2 changes: 1 addition & 1 deletion lib/aws.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ aws::get_aws_creds() {
}

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

# Generate the org-tag fetching script
Expand Down
1 change: 1 addition & 0 deletions lib/cleanup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ cleanup::exit_trap() {
"${DOCK_INIT_BASE}"/consul-resources/vault/**/auth-token \
"${DOCK_INIT_BASE}"/consul-resources/vault/**/user-vault-auth-token \
"${DOCK_INIT_BASE}"/consul-resources/vault/**/token-* \
"${DOCK_INIT_BASE}"/util/get-aws-creds.sh \
"${DOCK_INIT_BASE}"/key/rollbar.token
fi
}
Expand Down

0 comments on commit 545469f

Please sign in to comment.