[AWS Lab] VPC – Public Subnet

In this lab, we will learn how to create a public subnet and test it with an EC2 instance.

Overview

  • VPC
    • Create a VPC and a public subnet
  • EC2
    • Create an EC2 instance inside the public subnet
    • Setup the website in the EC2 instance using “httpd
    • Access the website via the public IP address of the EC2 instance
Continue reading “[AWS Lab] VPC – Public Subnet”

[AWS Lab] Lambda – Environment Variables

In this lab, we will learn how to use environment variables in a Lambda function.

Overview

  • S3
    • Create a bucket
    • Upload an image file
  • Lambda – Function
    • Get the bucket name and the image name from environment variables
    • Retrieves the object properties
    • Python, boto3
Continue reading “[AWS Lab] Lambda – Environment Variables”

[AWS Lab] Lambda Invocation via Polling – DynamoDB Stream

In this lab, we will learn how a lambda function can be invoked via Polling.

  • Overview
  • Source: DynamoDB Stream
    • Create a DynamoDB Table
    • Enable the Stream
  • Target: Lambda – Function
    • logs the received message
    • does not return any value
    • configures the trigger
    • Python
Continue reading “[AWS Lab] Lambda Invocation via Polling – DynamoDB Stream”

[AWS Lab] Asynchronous Lambda Invocation – EventBridge

In this lab, we will learn how to invoke a lambda function asynchronously from Amazon EventBridge.

Overview

  • Source: EventBridge
    • Build a custom event Bus and add a custom event Rule
  • Target: Lambda – Function
    • logs the received event
    • does not return any value
    • Python
Continue reading “[AWS Lab] Asynchronous Lambda Invocation – EventBridge”