an AWS CDK code pipeline for internal python packages CICD onto AWS codeartifact
To deploy this project
- Install aws cdk.
npm install -g aws-cdk
- check if cdk is installed
cdk --version
- 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
- 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
- Before deploying, Check what services/infra resources will be altered or created:
cdk diff --profile guneshs
- Deploy the cdk
cdk deploy --profile guneshs
- 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.