Skip to content

ossrs/srs-cdk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

srs-cdk

AWS CDK for SRS

Usage

Install AWS CLI, then configure the credentials:

aws configure set region us-west-2
aws configure set aws_access_key_id YOUR_ACCESS_KEY_ID
aws configure set aws_secret_access_key YOUR_SECRET_ACCESS_KEY

Now you are ready to deploy using the CDK. Run command in each directory:

cd srs-cdk-ec2-single-origin
cdk deploy

Alternatively, you can use an environment variable to change the target region for CDK deployment.

env AWS_REGION=us-east-2 cdk deploy

If you need to directly specify the account and region for the CDK:

env CDK_DEPLOY_ACCOUNT=YOUR_AWS_ACCOUNT CDK_DEPLOY_REGION=us-east-2 cdk deploy

For other use scenarios, please follow the instructions provided in each example.

For each example, the cdk.json file tells the CDK Toolkit how to execute your app. Below are some useful commands.

  • npm run build compile typescript to js
  • npm run watch watch for changes and compile
  • npm run test perform the jest unit tests
  • npx cdk deploy deploy this stack to your default AWS account/region
  • npx cdk diff compare deployed stack with current state
  • npx cdk synth emits the synthesized CloudFormation template

About

AWS CDK for SRS

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published