Skip to content

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
wants to merge 13 commits into
base: master
Choose a base branch
from

Conversation

veimox
Copy link

@veimox veimox commented Nov 22, 2023

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 the e2e 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

Copy link

nx-cloud bot commented Dec 16, 2023

☁️ Nx Cloud Report

CI 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


🟥 Failed Commands
nx-cloud record -- yarn nx format:check
✅ Successfully ran 4 targets

Sent with 💌 from NxCloud.

@veimox veimox requested a review from bojanbass January 13, 2024 16:42
@veimox
Copy link
Author

veimox commented Jan 31, 2024

up

@veimox veimox requested a review from bojanbass February 6, 2024 07:53
@veimox veimox requested a review from bojanbass February 7, 2024 11:51
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