A CDK Python project that helps analyze and fix CI/CD pipeline failures using AWS Bedrock.
This project deploys AWS resources that monitor your CodePipeline for failures, analyze error messages using Amazon Bedrock, and provide solutions using AI for common pipeline issues.
- AWS CLI configured
- Python 3.x
-
Clone the Repository
-
Navigate to the Project Directory
cd CICD-PIPELINE-ASSISTANT -
Create a Virtual Environment
python3 -m venv .venv
-
Activate the Virtual Environment
On MacOS/Linux:
source .venv/bin/activateOn Windows:
.venv\Scripts\activate.bat
-
Install Dependencies
pip install -r requirements.txt
-
Configure your aws account connectivity from you shell
aws configure
-
Run following file for the deployment
./scripts/deploy.sh
Add this as plain text in the 'github-credentials' secret created for you while you deploy the stack.
{"access_token":"<Your_Github_Token>","repo_url":"<https://github.com/><YOUR_USERNAME>/<REPO_NAME>.git"}
./scripts/cleanup.shcdk ls- List all stacks in the app also checks for the errorcdk synth- Emit the synthesized CloudFormation templatecdk deploy- Deploy this stack to your default AWS account/regioncdk diff- Compare deployed stack with current statecdk docs- Open CDK documentation
This project is licensed under the MIT License - see the LICENSE file for details.
