Skip to content

TatsuyaOoki/cdk-aws-network

Repository files navigation

CDK Project

This is an AWS CDK project managed using Projen. By default, the configuration is as follows. AWS Configuration Diagram

📢 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

yarn install

Setup Environment Variables

Before running any CDK commands, copy .env.sample to .env and update the values.

cp .env.sample .env

Edit .env and set your AWS Account and Region:

"CDK_DEPLOY_ACCOUNT=123456789123",
"CDK_DEPLOY_REGION=ap-northeast-1",

Enter value in devParameter in src/parameter.ts

envName: 'Production',
repository: 'TatsuyaOoki/cdk-project',
projectName: 'xxxxx',

Build and tests

npx projen build

Update Snapshots

If you made changes to the CDK stack and need to update the snapshot tests, run:

npx projen test:update

This will regenerate the snapshot files based on the current CDK template.

Deploy the stack

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

About

AWS簡易検証環境構築用CDK

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •