$ docker-compose build
$ docker-compose up -d
$ docker exec -it ContainerID /bin/bash
- after login shell
- install python modules at cdk/setup.py
- setup aws cli(devlopment, staging, production)
- [Caution]
- Scripts(aws cli) are dependent at
.env
- Scripts(aws cli) are dependent at
$ ./setup.sh
- if does not work, you must be check permissions(setup.sh)
$ chmod 755 setup.sh
- To activate your virtualenv on a Linux or MacOs platform:
$ source .env/bin/activate
- install the required python modules.
$ pip install --upgrade pip && pip install -r requirements.txt
- This will output the following CloudFormation template:
$ cdk [--profile PROFILE] synth -c env=ENV
- The first time you deploy an AWS CDK app into an environment (account/region)
- need to install a bootstrap stack
$ cdk [--profile PROFILE] bootstrap -c env=ENV
$ cdk [--profile PROFILE] deploy STACK_NAME -c env=ENV
- https://docs.aws.amazon.com/cdk/latest/guide/get_context_var.html
- https://dev.classmethod.jp/articles/aws-cdk-command-line-interface/#toc-14
- point
Context 値は AWS CDK が自動で生成して使い回すものもあるし、開発者が明示的に保管しておく値もある
$ aws --version
$ cdk --version
$ aws configure
$ cat ~/.aws/credentials
$ cat ~/.aws/config
$ aws configure list
# List
$ printenv
# Var
$ echo $VAR