Skip to content

neilkuan/ddt-techday-demo

Repository files navigation

ddt-techday-demo

DDT Tech Day Demo CDK Part.

Create asg web server.

  • AWS Resource View
  • AWS CDK Constructs View

Need three value ?!

  1. ZONEID and ZONENAME like example.com and ZXXXXXXXXXX on Rouet53 Page.
  2. ACMARN is Amazon Certificates Manager like arn:aws:acm:region:account-id:certificate/xxxxxxx-oooo-oooo-oooo-xxxxxxxx .

How to use ?!

#export ENVVARS 
export ZONEID=ZXXXXXXXXXX
export ZONENAME=example.com
export ACMARN=arn:aws:acm:region:account-id:certificate/xxxxxxx-oooo-oooo-oooo-xxxxxxxx

#To synth 
cdk synth -c zoneName=$ZONENAME  -c zoneId=$ZONEID -c acm=$ACMARN

#To Diff
cdk diff -c -c zoneName=$ZONENAME  -c zoneId=$ZONEID -c acm=$ACMARN

#To Deploy
cdk deploy --require-approval never -c zoneName=$ZONENAME  -c zoneId=$ZONEID -c acm=$ACMARN 

#To Destroy
cdk destroy -f