https://github.com/tatsuyaooki/cdk-aws-network
AWS簡易検証環境構築用CDK
https://github.com/tatsuyaooki/cdk-aws-network
aws aws-cdk-typescript aws-cdk-v2 cdk
Last synced: about 2 months ago
JSON representation
AWS簡易検証環境構築用CDK
- Host: GitHub
- URL: https://github.com/tatsuyaooki/cdk-aws-network
- Owner: TatsuyaOoki
- License: apache-2.0
- Created: 2025-02-16T14:30:17.000Z (3 months ago)
- Default Branch: main
- Last Pushed: 2025-04-01T00:47:39.000Z (about 2 months ago)
- Last Synced: 2025-04-01T01:33:13.690Z (about 2 months ago)
- Topics: aws, aws-cdk-typescript, aws-cdk-v2, cdk
- Language: TypeScript
- Homepage:
- Size: 268 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# CDK Project
This is an AWS CDK project managed using **Projen**.
By default, the configuration is as follows.## 📢 Important: Do Not Edit Managed Files Manually
This project is configured using **Projen**, which automates dependency management and file generation.### Files Managed by Projen
The following files are managed by `projenrc.ts`. **Do not edit them manually.**
- `README.md`
- `package.json`
- `.gitignore`
- `tsconfig.json`
- `.eslintrc.json`
- `.npmignore`
- Other configuration files### How to Apply Changes?
1. Modify `projenrc.ts` to update project settings.
2. Run `npx projen` to regenerate all managed files.## 📦 Setup
### Install dependencies
```sh
yarn install
```### Setup Environment Variables
Before running any CDK commands, copy **.env.sample** to **.env** and update the values.
```sh
cp .env.sample .env
```Edit **.env** and set your AWS Account and Region:
```sh
"CDK_DEPLOY_ACCOUNT=123456789123",
"CDK_DEPLOY_REGION=ap-northeast-1",
```Enter value in devParameter in src/parameter.ts
```sh
envName: 'Production',
repository: 'TatsuyaOoki/cdk-project',
projectName: 'xxxxx',
```### Build and tests
```sh
npx projen build
```### Update Snapshots
If you made changes to the CDK stack and need to update the snapshot tests, run:
```sh
npx projen test:update
```
This will regenerate the snapshot files based on the current CDK template.### Deploy the stack
```sh
npx projen deploy
```## 🎯 About Projen
This project is managed using **Projen**, which automates dependency management, project structure, and best practices.## 🚀 Useful Commands
- `npx projen`: Generate project files
- `npx projen build`: Build and tests
- `npx projen test`: Run tests
- `npx projen deploy`: Deploy the CDK stack
- `npx projen destroy`: Destroy the deployed stack