Skip to content

dacarey/curity-fargate-deployment-stack

Repository files navigation

CDK Python project to deploy Curity on AWS Fargate!

The cdk.json file tells the CDK Toolkit how to execute your app.

This project is set up like a standard Python project.

To manually create a virtualenv on MacOS and Linux:

$ python3 -m venv .venv

After the init process completes and the virtualenv is created, you can use the following step to activate your virtualenv.

$ source .venv/bin/activate

Once the virtualenv is activated, you can install the required dependencies.

$ pip install -r requirements.txt

At this point you can now synthesize the CloudFormation template for this code.

$ cdk synth --profile xxxxx --context curity-aws-env=yyyy

The --profile parameter should be used to select your aws cli profile The --context curity-aws-env=yyyy parameter is required to configure application settings for the Curity AWS environment

To add additional dependencies, for example other CDK libraries, just add them to your setup.py file and rerun the pip install -r requirements.txt command.

Useful commands

  • cdk ls list all stacks in the app
  • cdk synth emits the synthesized CloudFormation template
  • cdk deploy deploy this stack to your default AWS account/region
  • cdk diff compare deployed stack with current state
  • cdk docs open CDK documentation

About

Deploy Curity to AWS Fargate via a CDK Python script

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published