-
Notifications
You must be signed in to change notification settings - Fork 30
Infrastructure as Code in CLI #449
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
veimox
wants to merge
13
commits into
bojanbass:master
Choose a base branch
from
veimox:feat/cdk-stack
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
☁️ Nx Cloud ReportCI is running/has finished running commands for commit 9b89cef. As they complete they will appear below. Click to see the status, the terminal output, and the build insights. 📂 See all runs for this CI Pipeline Execution
✅ Successfully ran 4 targetsSent with 💌 from NxCloud. |
bojanbass
reviewed
Dec 16, 2023
bojanbass
reviewed
Dec 16, 2023
bojanbass
reviewed
Dec 16, 2023
bojanbass
reviewed
Dec 16, 2023
bojanbass
reviewed
Dec 16, 2023
bojanbass
reviewed
Dec 16, 2023
6489c55
to
5a2db42
Compare
3a522f3
to
db93906
Compare
up |
bojanbass
reviewed
Feb 5, 2024
bojanbass
reviewed
Feb 6, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Why
Lower cognitive load to setup the infrastructure
What
Just run a command to setup the infrastructure. This will generate all of it, including an IAM user and will set the configuration in a secret. The configuration can then be retrieved and added to the user's environment with another command. Read the README to clarify things.
How
We have created a new
app
that contains to binaries, the one to create the infrastructure with CDK and another script to retrieve the configuration and add it to the environment.For the IaC we use CDK, mostly because this is a very AWS specific thing, which plays nicely. We bundle things up with
esbuild
which simplifies then the dependency management of the final binary as all dependencies (e.g. CDK or the secrets manager SDK) are bundled.To follow the Nx standard of only having one
apps
folder, I have moved thee2e
to such folder as well.We have also extended the commands a little bit so the CI and publishing of the packages, will work for the new app as well.
How to test
Follow the steps in the
README.md