File tree Expand file tree Collapse file tree 4 files changed +3
-4
lines changed
consul-resources/templates Expand file tree Collapse file tree 4 files changed +3
-4
lines changed Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
set -e
3
3
4
- # WARNING: do not echo anything except ORG ID here
5
-
6
4
{{ with vault " aws_1h/creds/dock-init" }}
7
5
export AWS_ACCESS_KEY=" {{ .Data.access_key }}"
8
6
export AWS_SECRET_KEY=" {{ .Data.secret_key }}"
Original file line number Diff line number Diff line change @@ -64,7 +64,7 @@ main() {
64
64
consul::get_environment
65
65
consul::configure_consul_template
66
66
dock::generate_certs
67
- aws::get_org_tags
67
+ aws::get_org_ids
68
68
dock::set_hostname
69
69
dock::set_config_org
70
70
vault::store_private_registry_token
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ aws::get_aws_creds() {
31
31
}
32
32
33
33
# 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 () {
35
35
log::info " Setting Github Org ID"
36
36
37
37
# Generate the org-tag fetching script
Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ cleanup::exit_trap() {
13
13
" ${DOCK_INIT_BASE} " /consul-resources/vault/** /auth-token \
14
14
" ${DOCK_INIT_BASE} " /consul-resources/vault/** /user-vault-auth-token \
15
15
" ${DOCK_INIT_BASE} " /consul-resources/vault/** /token-* \
16
+ " ${DOCK_INIT_BASE} " /util/get-aws-creds.sh \
16
17
" ${DOCK_INIT_BASE} " /key/rollbar.token
17
18
fi
18
19
}
You can’t perform that action at this time.
0 commit comments