Skip to content

Latest commit

 

History

History
57 lines (37 loc) · 1.1 KB

File metadata and controls

57 lines (37 loc) · 1.1 KB

AWS CDK CICD for internal python packages

an AWS CDK code pipeline for internal python packages CICD onto AWS codeartifact

Deployment

To deploy this project

  1. Install aws cdk.
npm install -g aws-cdk
  1. check if cdk is installed
cdk --version
  1. Synth cdk project to create cloudformation templates
cdk synth

Note: This CDK project is AWS Account agnostic. Use aws cli profile while deploying and diff

  1. Create an AWS CLI profile:
aws configure --profile guneshs

or if you want to set this profile as default

aws configure

Pass aws Acc id, secret access key id, access key id, aws region, outfomat : json

  1. Before deploying, Check what services/infra resources will be altered or created:
cdk diff --profile guneshs
  1. Deploy the cdk
cdk deploy --profile guneshs
  1. It will generate a codecommit repo named "ca-pipeline-repository". You can push your internal packages onto that repo and this stack will take care of you package building i.e .whl and pushing onto the aws codeartifact for other devs to pip install the package.