This repository contains a collection of starter templates for AWS CodePipeline, designed to help users quickly set up and configure their CI/CD pipelines for various project types and deployment scenarios.
/templates
: Contains the main components of the starter templates/metadata
: JSON files describing each template. These files control how templates are rendered in the CodePipeline console. For more details on the schema and usage, refer to the metadata README./cloudformation
: CloudFormation templates for each pipeline configuration./ui-hints
: JSON files controlling the rendering of template configuration in the CodePipeline console. These files define how the template configuration step is displayed. For more information on the schema and usage, refer to the UI hints README.
assets
: Contains svg icons for the starter templates
This project uses Node.js for development tasks. To set up the development environment:
- Ensure you have Node.js 18 or later installed
- Run
npm install
to install dependencies
To add a new template, follow these steps:
- Create a new metadata file for the template in the
/templates/metadata
folder. This file should conform to the schema defined in/templates/metadata/schema.json
. - Add the corresponding CloudFormation template file in the
/templates/cloudformation
folder. - The build script will automatically validate the metadata and CloudFormation template files, and generate the synthesized files for the CodePipeline Console to render.
You are not required to add a new icon for your template. You can use the existing codepipeline.svg
icon located in the assets/icons/
folder.
If you want to add a new icon to this package,
- Add the SVG file to the
assets/icons/
folder in this project. - The icon-name in the metadata should correspond to the relevant folder, for example,
icon-name: lambda
expects an icon file atasset/icons/lambda.svg
.
Our template validation workflow involves JSON schema validation using npm and CloudFormation linting using cfn-lint. To test your changes locally:
- Ensure you have npm and cfn-lint installed on your system.
- Run the following command to validate the JSON files:
npm run test
- Run the following command to validate the CloudFormation files:
cfn-lint templates/cloudformation/*
We welcome contributions to this project. Please read our Contributing Guidelines for more information on how to add new templates or improve existing ones. Your contributions will be available in the CodePipeline Console in a future release.
See CONTRIBUTING for more information.
This project is licensed under the Apache-2.0 License.