0
0
AWScloud~30 mins

Internet Gateway for public access in AWS - Mini Project: Build & Apply

Choose your learning style9 modes available
Internet Gateway for public access
📖 Scenario: You are setting up a simple AWS Virtual Private Cloud (VPC) that allows public internet access. To do this, you need to create an Internet Gateway and attach it to your VPC. This setup is common when you want your cloud resources to be reachable from the internet, like a web server.
🎯 Goal: Create an Internet Gateway resource and attach it to an existing VPC to enable public internet access.
📋 What You'll Learn
Create an AWS Internet Gateway resource named MyInternetGateway.
Create a VPC resource named MyVPC with CIDR block 10.0.0.0/16.
Attach the Internet Gateway MyInternetGateway to the VPC MyVPC.
Use valid AWS CloudFormation YAML syntax.
💡 Why This Matters
🌍 Real World
This project models a common cloud setup where a VPC is connected to the internet via an Internet Gateway, allowing public access to resources like web servers.
💼 Career
Understanding how to configure Internet Gateways and VPC attachments is essential for cloud engineers and architects managing AWS infrastructure.
Progress0 / 4 steps
1
Create a VPC resource
Create a VPC resource named MyVPC with the CIDR block 10.0.0.0/16.
AWS
Need a hint?

Use AWS::EC2::VPC resource type and set CidrBlock to 10.0.0.0/16.

2
Create an Internet Gateway resource
Add an Internet Gateway resource named MyInternetGateway.
AWS
Need a hint?

Use AWS::EC2::InternetGateway resource type and add a Name tag.

3
Attach the Internet Gateway to the VPC
Create a resource named AttachGateway that attaches the Internet Gateway MyInternetGateway to the VPC MyVPC.
AWS
Need a hint?

Use AWS::EC2::VPCGatewayAttachment resource type with VpcId and InternetGatewayId referencing the correct resources.

4
Add a tag to the VPC for identification
Add a tag with Key as Environment and Value as Public to the VPC MyVPC.
AWS
Need a hint?

Add a new tag entry under the VPC's Tags list with the specified key and value.