- Lab
- A Cloud Guru
Getting Started with the AWS CDK
The AWS Cloud Development Kit (CDK) allows users to use their preferred coding language to deploy AWS services and infrastructure. In this lab, you will use a Cloud9 IDE to work with the CDK, first by ensuring the environment is configured to work with the CDK and your chosen coding language (TypeScript, Python, Go, or C#), then by initializing and building out a basic CDK project that deploys a static website hosted on a public S3 bucket. Once the code is complete, you’ll deploy the project, confirm the deployment, then destroy your work once done.
Path Info
Table of Contents
-
Challenge
Update the CDK and Confirm Coding Language
Access the Cloud9 IDE and confirm the CDK is on the latest version; update it if needed.
Additionally, ensure the environment is set up to work with your chosen coding language.
-
Challenge
Code an S3 Bucket for Static Web Hosting
Develope code in your choosen language to deploy an S3 bucket that hosts a static website landing page. Set
index.html
as the main website document and ensure the provided website files are uploaded to the bucket. Define the bucket construct so the bucket and all contents are removed upon acdk destroy
. -
Challenge
Deploy
Test your code by deploying the project. Navigate to the
index.html
from the provisioned bucket to make sure it is publically veiwable.Destroy the project when done testing.
What's a lab?
Hands-on Labs are real environments created by industry experts to help you learn. These environments help you gain knowledge and experience, practice without compromising your system, test without risk, destroy without fear, and let you learn from your mistakes. Hands-on Labs: practice your skills before delivering in the real world.
Provided environment for hands-on practice
We will provide the credentials and environment necessary for you to practice right within your browser.
Guided walkthrough
Follow along with the author’s guided walkthrough and build something new in your provided environment!
Did you know?
On average, you retain 75% more of your learning if you get time for practice.