It is an example for AWS VPC that I have prepared for the live stream session for AWS Maniac.
make
source ./.env/bin/activate
aws-mfa --profile=<YOUR_PROFILE>
export AWS_DEFAULT_PROFILE=<YOUR_PROFILE>
- of course you should choose the one you want.export AWS_DEFAULT_REGION=eu-north-1
- of course you should choose the one you want.(cd remote-state && terraform-init)
(cd remote-state && terraform apply)
- one time operation, if you do not have backend configured.(cd vpc && terraform-init && terraform apply)
make
source ./.env/bin/activate
aws-mfa --profile=<YOUR_PROFILE>
export AWS_DEFAULT_PROFILE=<YOUR_PROFILE>
- of course you should choose the one you want.export AWS_DEFAULT_REGION=eu-north-1
- of course you should choose the one you want.aws cloudformation create-stack --stack-name "CF-DEV-VPC-EXAMPLE" --template-body "file://`pwd`/livestream-2-aws-networking/cloudformation/vpc.template.yaml"