A devcontainer with tools and scripts I like to use as a base for development. If you've found this on the interwebs, in a nutshell:
- Dev containers are awesome, they allow you to create a reproducible local dev setup
- This repo contains my personal dev container setup with some tools, script, aliases, repos etc. that I often use
- It's probably not a good idea to use this repo directly, but hopefully it gives you some ideas on setting up your own dev container
# terraform repo that has some common cloud resource builds
source /workspaces/devcontainer/tools/repo_terraform.sh
# pulumi repo that has some common cloud resource builds
source /workspaces/devcontainer/tools/repo_pulumi.sh
# redis local dev/db
source /workspaces/devcontainer/tools/repo_redis.sh
# neon.tech for postgres
source /workspaces/devcontainer/tools/neontech.sh
# basic python rest api
source /workspaces/devcontainer/tools/repo_python-api.sh
# my aws templates repo
source /workspaces/devcontainer/tools/repo_private-aws.sh
Some tools e.g. Terraform, Pulumi require authing to AWS. This is done by creating a ~/.aws/config file when this devcontainer spins up. In GH Codepsaces you should create an env var CS_ENVVAR_AWSCONFIG that has the full contents of your config file; those contents will automatically populated into .aws/config when the devcontainer is first created.
Run this to get auth'd:
aws sso login