Ishali / project1

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

vertex-impact-common-stack

This stack containes common resources required by all modules such as omnichannel, cmo, acquia and so on...

Prerequisite

Build

To build this app, you need to be at the root folder. Then run the following:

$ python3.9 -m venv .cdk_env
$ source .cdk_env/bin/activate
$ pip install -r requirements.txt

This will install the necessary CDK, and other test dependencies, and then build your Python files and your CloudFormation template.

Install the latest version of the AWS CDK CLI:

$ npm i -g aws-cdk
$ cdk --version

Deploy

Set Env Var

export environment_name="sbx01/dev/test/prod"

Install Python Lambda Layer

mkdir -p ./lambda-layers/vertex-impact-${environment_name}-layer/python/lib/python3.9/site-packages/
pip install -r lambda-layer.txt --target ./lambda-layers/vertex-impact-${environment_name}-layer/python/lib/python3.9/site-packages/

Run the below command after setting up your aws-credentials in your terminal.

To list the resources -

cdk ls -c env=${environment_name} --all -v

cdk synth -c env=${environment_name} --all -v

Check which resource will cdk create, replace or destroy -

cdk diff -c env=${environment_name} --all -v

To deploy the resources -

cdk deploy -c env=${environment_name} --all -v
References

Test Commit

About


Languages

Language:Python 94.9%Language:Batchfile 5.1%