Skip to content

ZERO131 get aws and ci creds from secrets manager - #12

Merged
cjhawkins merged 2 commits into
masterfrom
ZERO131-get-creds-from-secretsmanager
Jun 9, 2020
Merged

ZERO131 get aws and ci creds from secrets manager#12
cjhawkins merged 2 commits into
masterfrom
ZERO131-get-creds-from-secretsmanager

Conversation

@cjhawkins

Copy link
Copy Markdown
Contributor

No description provided.

@cjhawkins
cjhawkins requested a review from bmonkman June 9, 2020 19:29
Comment thread Makefile Outdated

AWS_ACCESS_KEY_ID := $(shell aws secretsmanager get-secret-value --secret-id=aws_access_key_id | jq -r '.SecretString')
AWS_SECRET_ACCESS_KEY := $(shell aws secretsmanager get-secret-value --secret-id=aws_secret_access_key | jq -r '.SecretString')
CIRCLECI_TOKEN := $(shell aws secretsmanager get-secret-value --secret-id=circleci_api_key | jq -r '.SecretString')

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

The circle token should be passed in as an env var to make

Comment thread Makefile Outdated
# - CIRCLECI_TOKEN
#

AWS_ACCESS_KEY_ID := $(shell aws secretsmanager get-secret-value --secret-id=aws_access_key_id | jq -r '.SecretString')

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Sorry, just realized this secret has json inside it. So these should be:

... --secret-id=ci-user-aws-keys | jq -r '.SecretString'| jq -r .access_key_id
... --secret-id=ci-user-aws-keys | jq -r '.SecretString'| jq -r .secret_key

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I will make these changes to the backend Makefile as well.

@cjhawkins
cjhawkins merged commit c578079 into master Jun 9, 2020
@cjhawkins
cjhawkins deleted the ZERO131-get-creds-from-secretsmanager branch June 9, 2020 21:39
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.

2 participants