Git Product home page Git Product logo

project-1's Introduction

terraform-project-1

  • Write Terraform code to create the following:

    • Create an s3 bucket - test_bucket

    • Assume that given a VPC ID - create 2 subnets - subnet_1 and subnet_2 - choose any cidr

    • Create a policy which gives EC2 write access to test_bucket - test_policy

    • Create a role to which test_policy is attached - test_role

    • Create a security group which allows all incoming 443 and all outgoing internet traffic - test_sg_1

    • Create an ELB with health check - /health on port 443 of the instances behind it - test_elb

    • Create an EC2 instance with - subnet_1, test_role and test_sg_1 and add it to test_elb - choose any EC2 instance type. Think of what best practices you would use to create this instance.

    • Tag all of the above infra with key "product_id" value "test_product"

    • Save state in S3 - use a bucket name that you think would make sense.

    • Abstract the above code in a Terraform module

    • Write and version your module in such a way that the same module can be used to deploy to 3 environments - dev, stage and prod by just changing the variables.

    • Your code should pass the "terraform plan" phase. You don't need to do "terraform apply" on it.

    • Evaluation criteria:

      • Modularity of code.
      • Ease of understanding of README.md documentation.
      • Proper naming conventions.
      • How production ready your code is.

project-1's People

Contributors

nilesh2590 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.