Skip to content

Latest commit

 

History

History
 
 

design-provision-monitor-aws-Infra-at-scale

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Design, Provision and Monitor AWS Infrastructure at Scale

In this project, you will plan, design, provision, and monitor infrastructure in AWS using industry-standard and open source tools. You will practice the skills you have learned throughout the course to optimize infrastructure for cost and performance. You will also use Terraform to provision and configure AWS services in a global configuration.

Project Instructions

Task 1: Create AWS Architecture Schematics

You have been asked to plan and provision a cost-effective AWS infrastructure for a new social media application development project for 50,000 single-region users. The project requires the following AWS infrastructure and services. Please include your name and label all elements of the infrastructure on the diagram.

Answer

Infrastructure diagram

You have been asked to plan a SERVERLESS architecture schematic for a new application development project.

Answer

Infrastructure diagram

Task 2: Calculate Infrastructure Costs

Use the AWS Pricing Calculator to estimate how much it will cost to run the services in your diagram for one month.

Answer

Initial Cost Estimate

Your budget has been reduced

Answer

Reduced Cost Estimate

Your budget has been increased

Answer

Increased_Cost Estimate

Task 3: Configure Permissions

Answer

Password Policy

CloudTrail Log

Task 4: Set up Cost Monitoring

Answer

CloudWatch Alarm

Task 5 : Use Terraform to Provision AWS Infrastructure

Exercise 1

  1. Download the starter code.
  2. In the main.tf file write the code to provision
    • AWS as the cloud provider
    • Use an existing VPC ID
    • Use an existing public subnet
    • 4 AWS t2.micro EC2 instances named Udacity T2
    • 2 m4.large EC2 instances named Udacity M4
  3. Run Terraform.
  4. Take a screenshot of the 6 EC2 instances in the AWS console and save it as Terraform_1_1.
  5. Use Terraform to delete the 2 m4.large instances
  6. Take an updated screenshot of the AWS console showing only the 4 t2.micro instances and save it as Terraform_1_2
Answer

Terraform_1_1

Terraform_1_2

Exercise 2

  1. In the Exercise_2 folder, write the code to deploy an AWS Lambda Function using Terraform. Your code should include:

    • A lambda.py file
    • A main.tf file with AWS as the provider, and IAM role for Lambda, a VPC, and a public subnet
    • An outputs.tf file
    • A variables.tf file with an AWS region
  2. Take a screenshot of the EC2 instances page

  3. Take a screenshot of the VPC page

Answer

Terraform_2_1

Terraform_2_2

Terraform_2_3

Task 6: Destroy the Infrastructure using Terraform

Answer

Terraform destroyed