- Create a VPC
- Two subnets within same VPC (Public & Private)
- Attach a internet gateway to the VPC
- NAT Gateway to be attached to Public Subnet
- Route table creation for each subnet
- make use of meta-arg length function to replace number counts in the previous created resources.
- use data source concept to retrieve the AMI ID information
- Create two EC2 instance based on it, one per subnet
- one security group for each one of them & inbound traffic to be accepted only from your IP address
- create an IAM Role
- create an IAM Policy
- Attach IAM Role & Policy created previously
- Get the IAM Role attached to EC2 instance
- Connect to the EC2 instance & install AWS CLI
- Try to create S3 bucket from EC2 instance