gatsby demo for AWS Cloud Development Kit
This constructs below.
Run cdk deploy. And you'll see outputs like below.
Next, run commands following the outputs.
aws deploy register-on-premises-instance ~aws deploy add-tags-to-on-premises-instances ~aws codepipeline start-pipeline-execution ~
Finally, access the URL on browser. You'll see deployed page.
aws deploy deregister --instance-name cdk-lightsail --region ap-northeast-1aws deploy remove-tags-from-on-premises-instances --tags Key=Name,Value=CodeLightsailTest --instance-names cdk-lightsail

