08/22/2022 - 08/22/2022
10:00 AM - 06:00 PM
Online Virtual Class
USD $650.00
Enroll
09/26/2022 - 09/26/2022
10:00 AM - 06:00 PM
Online Virtual Class
USD $650.00
Enroll
10/11/2022 - 10/11/2022
10:00 AM - 06:00 PM
Online Virtual Class
USD $650.00
Enroll

What you will learn

• AWS CDK Setup and Configuration

• CDK Workflow

• AWS Constructs

• TypeScript Basics

• AWS Cloud Formation Concepts 

• Using CDK to Manage Buckets and Files

• Defining and Deploying Lambdas

• Unit Testing of TypeScript Projects using Jest

Prerequisites

We recommend the following prerequisites:

• Basic knowledge of JavaScript programming

• Working knowledge of core AWS services and public cloud implementation

• Experience using AWS services’ web-consoles. 

Duration

1 Day.

 

Lab Setup Guide

Outline for Using TypeScript to Manipulate AWS CDK Training

Chapter 1. Introduction to the AWS CDK

  • AWS Cloud Development Kit
  • AWS Cloud Resources
  • Using AWS Cloud Resources
  • Provisioning Cloud Applications
  • Automation
  • CDK Workflow
  • AWS Cloud Formation Stacks
  • Constructs
  • AWS Construct Library
  • Construct Types
  • The AWS Cloud Development Kit (CDK)
  • CDK CLI Commands
  • CDK bootstrap
  • CDK init Command
  • Compatible Programming Languages
  • CDK Code
  • TypeScript Compilation
  • CDK Synth Command
  • CDK Deploy Command
  • Summary

Chapter 2. AWS CloudFormation and Stacks

  • What is CloudFormation?
  • CloudFormation WebConsole
  • Templates
  • CloudFormation Designer
  • The Designer Resource GUI
  • The Designer Template Editor
  • Sample Templates
  • Resource Stacks
  • Resource Types
  • Deploying Stacks
  • Updating Stacks
  • Updating a Stack Directly
  • Updating Using Change Sets
  • Deleting Stacks
  • DELETE_FAILED when Deleting a Stack
  • Summary

Chapter 3. TypeScript Basics

  • What is TypeScript
  • TypeScript vs. JavaScript
  • Benefits of TypeScript
  • TypeScript Support
  • Setting up a Standalone TypeScript Development Environment
  • TypeScript Features
  • The Type System – Defining Variables
  • The Type System – Defining Arrays
  • Type in Functions
  • Type Inference
  • Defining Classes
  • Class Methods
  • Visibility Control
  • Class Constructors
  • Class Constructors – Alternate Form
  • Arrow Functions
  • Importing and Exporting Code
  • Arrow Function Compact Syntax
  • let and const
  • 'var' Variable Scope
  • 'let' Variable Scope
  • The 'const' keyword
  • Template Strings
  • Code Modules
  • Basic Export/Import Syntax
  • Export Statements
  • Import Statements
  • Programming Editors
  • Summary

Chapter 4. AWS CDK Setup

  • Setup Overview
  • HW/SW Environment
  • Accounts, Credentials & Permissions
  • AWS-CLI installation
  • aws configure
  • Some aws-cli Commands
  • AWS-CDK installation
  • Some cdk Commands
  • Initializing a CDK Project
  • cdk bootstrap and CDKToolkit
  • Removing CDKToolkit
  • AWS Toolkit for Visual Studio Code
  • AWS Toolkit for VSC - Explorer
  • AWS Toolkit for VSC - Commands
  • Summary

Chapter 5. Working with S3 in the AWS CDK

  • S3 Overview
  • Managing Buckets and Files
  • The AWS-CDK
  • The CDK Application Project
  • The app-stack Code File
  • Create a Basic S3 Bucket
  • Setting Properties on a Construct
  • Construct Properties
  • publicReadAccess Property
  • removalPolicy
  • versioned Property
  • bucketName
  • websiteIndexDocument Property
  • S3 Bucket Website URL
  • Deploying the Stack/Bucket
  • Deploy files to a Bucket
  • The BucketDeployment Object
  • File prefixes
  • Summary

Chapter 6. Programming Lambdas in the AWS CDK

  • AWS Lambda Overview
  • Managing AWS Lambdas
  • The AWS-CDK
  • The CDK Application Project
  • The app-stack Code File
  • Create a Basic Lambda
  • The lambda.Function Construct
  • Function Construct Properties
  • The lambda function
  • Deploying a Lambda
  • Testing a Lambda in the Lambda Web Console
  • Invoking a Lambda using AWS-CLI
  • Invoke Lambda via REST API Endpoint 1/2
  • Invoke Lambda via REST API Endpoint 2/2
  • Summary

Chapter 7. Unit Testing with Jest

  • Jest Testing Framework
  • Jest is Installed with Various Frameworks
  • Unit Tests
  • Anatomy of a Unit Test
  • Example Test Function
  • Common Matchers
  • Test Suites
  • Setup and Teardown
  • Running Tests
  • Running Tests in Watch Mode
  • Running Tests with Code Coverage
  • Testing async code with done
  • Testing Promise Based Async Code
  • Summary

Lab Exercises

Lab 1. AWS CloudFormation Basics
Lab 2. Working with TypeScript
Lab 3. Introduction to the AWS CDK
Lab 4. Working with the AWS CDK
Lab 5. TypeScript Unit Testing in Jest