Skip to content

Added features necessary to support the new zero apply command - #14

Merged
bmonkman merged 3 commits into
masterfrom
integrate-new-apply-command
Jun 24, 2020
Merged

Added features necessary to support the new zero apply command#14
bmonkman merged 3 commits into
masterfrom
integrate-new-apply-command

Conversation

@bmonkman

Copy link
Copy Markdown
Contributor

Added parsing of repository var

Comment thread Makefile
curl -X POST --header "Content-Type: application/json" -d '{"name":"AWS_ACCESS_KEY_ID", "value":"${AWS_ACCESS_KEY_ID}"}' https://circleci.com/api/v1.1/project/github/${GITHUB_ORG}/${GITHUB_REPO}/envvar?circle-token=${CIRCLECI_TOKEN}
curl -X POST --header "Content-Type: application/json" -d '{"name":"AWS_SECRET_ACCESS_KEY", "value":"${AWS_SECRET_ACCESS_KEY}"}' https://circleci.com/api/v1.1/project/github/${GITHUB_ORG}/${GITHUB_REPO}/envvar?circle-token=${CIRCLECI_TOKEN}
curl -X POST --header "Content-Type: application/json" -d '{"name":"AWS_ACCESS_KEY_ID", "value":"${AWS_ACCESS_KEY_ID}"}' https://circleci.com/api/v1.1/project/github/${GITHUB_ORG}/${GITHUB_REPO}/envvar?circle-token=${CIRCLECI_API_KEY}
curl -X POST --header "Content-Type: application/json" -d '{"name":"AWS_SECRET_ACCESS_KEY", "value":"${AWS_SECRET_ACCESS_KEY}"}' https://circleci.com/api/v1.1/project/github/${GITHUB_ORG}/${GITHUB_REPO}/envvar?circle-token=${CIRCLECI_API_KEY}

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.

Are AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY passed in as args now?

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.

Oops, no. Just missed that they were referenced in there. Added them back in.

Comment thread zero-module.yml Outdated
default: api.
- field: randomSeed
label: Random seed that will be shared between projects to come up with deterministic resource names
execute: uuidgen

@davidcheung davidcheung Jun 24, 2020

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.

uuidgen actually gives a pretty long name(36chars), alot of AWS artifacts have character limit we might not be able to use it :(

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.

not sure what's a good alternative... crc32 <(uuidgen) ?

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.

Or just uuidgen | head -c 8

@bmonkman
bmonkman merged commit 19b6564 into master Jun 24, 2020
@bmonkman
bmonkman deleted the integrate-new-apply-command branch June 24, 2020 23:06
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.

3 participants