Use Cloud Build to create all resources #256
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
@hernandezc1 This is an example of how I envision using Cloud Build to create all resources needed for a given module (supernnova, in this case). Some notes:
FIXME
s andCHECKME
s, and it likely contains some bugs.Included changes
Known omissions (will need to be added sooner rather than later)
Future work
Turn 'deploy.sh', etc. into reusable scripts. Individual modules should define all resources that they rely on, including all configuration, in an 'env.yaml'. The reusable scripts should take that as input and be able to handle (eg., iterate over) whatever they find in there.
First steps will be:
FIXME
s in 'deploy.sh' indicating that those blocks of code need to be taken out of that script. Goal is for that script to load env vars and launch cloud build, that's it.The rest has moved to #264.