Skip to content

Design AWS Architecture for Performance and Scalability. Plan a Serverless architecture and estimate infrastructure costs and setup cost monitoring. Using Terraform to provision the AWS plan a SERVERLESS architecture

Notifications You must be signed in to change notification settings

david-delucas/performance_scalability_architect_terraform_project

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Design for Performance and Scalability AWS Architecture


This projects have the following objectives:

  • Design AWS Architecture for Performance and Scalability
  • Plan a Serverless architecture
  • Estimate infrastructure costs and setup cost monitoring
  • Use Terraform to provision the AWS architecture

AWS Architecture Schematics

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.

provision a cost-effective AWS infrastructure for a new social media application

Project Instructions

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

Destroy a specific resource:

terraform destroy -target RESOURCE_TYPE.NAME

terraform destroy -target aws_instance.Udacity_M4

  1. Take an updated screenshot of the AWS console showing only the 4 t2.micro instances and save it as 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

Initial cost estimate

https://calculator.aws/#/estimate?id=0db76c19a15e461993ac818264f16a8923fb068e

Reduced cost estimate

https://calculator.aws/#/estimate?id=071486fd025e156876d3731d73c79dcd8df202b7

Increased_Cost Estimate

https://calculator.aws/#/estimate?id=b67032ff452583cdc65801530ac645edc80eae60

Useful links

https://calculator.aws/#/createCalculator

https://www.ec2instances.info/

https://aws.amazon.com/es/blogs/aws/estimate-your-c/

https://servebolt.com/articles/calculate-how-many-simultaneous-website-visitors/

About

Design AWS Architecture for Performance and Scalability. Plan a Serverless architecture and estimate infrastructure costs and setup cost monitoring. Using Terraform to provision the AWS plan a SERVERLESS architecture

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •