日本語 | English
DevOps automation toolkit using AWS CDK. Includes examples for Lambda functions, CI/CD pipelines, and operational best practices on AWS.
This repository is a DevOps automation toolkit using AWS CDK. It includes examples for Lambda functions, CI/CD pipelines, and operational best practices on AWS. The toolkit provides various samples and constructs to help developers and operations teams streamline their workflows in cloud environments and manage infrastructure as code.
- 🚀 Automated deployment of Lambda functions
- 🔄 CI/CD pipeline construction examples
- 🏗 Infrastructure as Code implementations
- ⚙ Automation samples for operational tasks
- Checkout the repository and initialize the project
1-1. Checkout a repository
git clone https://github.com/ishiharatma/aws-cdk-devops-toolkit.git
cd aws-cdk-devops-toolkit
1-2. Initializing a project
Install the required libraries for Node.js.
# install dependencies
npm ci
- Set your AWS CLI credentials
AWS credentials (API keys) are required to deploy the CDK. Here's the simplest way to use permanent credentials.
This method is mainly used in development environments. An example AWS CLI profile is below.
~/.aws/credentials
[<project name>-<environment>-accesskey]
aws_access_key_id = XXXXXXXXXXXXXXX
aws_secret_access_key = YYYYYYYYYYYYYY
region = ap-northeast-1
[<project name>-<environment>]
region = ap-northeast-1
role_arn = arn:aws:iam::123456789012:role/<role name>
mfa_serial = arn:aws:iam::123456789012:mfa/<username>
source_profile=<project name>-<environment>-accesskey
npm run cdk:diff:all -w workspaces/<workspace name> --env=<environment> --project=<project name>
npm run cdk:deploy:all -w workspaces/<workspace name> --env=<environment> --project=<project name>
npm run cdk:destroy:all -w workspaces/<workspace name> --env=<environment> --project=<project name>
Official resources for AWS CDK:
This project is released under the Apache License 2.0. See the LICENSE file for details.