Browse Source

Initial commit

Ben Wilber 1 year ago
commit
4efd699ee9
5 changed files with 51 additions and 0 deletions
  1. 2 0
      .gitignore
  2. 24 0
      .terraform.lock.hcl
  3. 24 0
      README.md
  4. 1 0
      terraform.tf
  5. 0 0
      terraform.tfvars

+ 2 - 0
.gitignore

@@ -0,0 +1,2 @@
+.terraform
+

+ 24 - 0
.terraform.lock.hcl

@@ -0,0 +1,24 @@
+# This file is maintained automatically by "terraform init".
+# Manual edits may be lost in future updates.
+
+provider "registry.terraform.io/hashicorp/aws" {
+  version = "5.12.0"
+  hashes = [
+    "h1:3Gchmc4oyFvWh3B4tEOQN5UOCd0bfp0P4fEgdpatmlo=",
+    "zh:0953565eb67ece49556dc9046c77322dc6c76e0ae6fa0c9fd6710b6afa2588c9",
+    "zh:43676f3592c127a971719cc37b9199967376fb05d445b356f1545609e2b84bf8",
+    "zh:46422ab8044b35e90f422ffabc17fa043ec8e4a33e3df2f8b305d63a950c0edb",
+    "zh:4d34f024a82d31d10b5a9498d26fca71e3e35c543dfc5185c94c3205bc4dba22",
+    "zh:51be0eeb882f041fc2679bd621e64cd775d013ae003055cea013c9d630c15dfb",
+    "zh:7ca9252befa7271899febde25b679a73f90dbdb700cbbfec07d29389a3937131",
+    "zh:8325b2152be0534a718e497a3273cf6c42880e78f290dc35024feef2e0af8e97",
+    "zh:98f0c4d4c190cf4897cb9075a538f42f2998566e9f2d15755901fbb4862f8b32",
+    "zh:9b12af85486a96aedd8d7984b0ff811a4b42e3d88dad1a3fb4c0b580d04fa425",
+    "zh:a71e0bc6754bb3924b31727d80f05b04fa65247c009ffdfd2a715a01d95b373d",
+    "zh:a82ae67ce3d4c7aaae761a592275b8cac5e9965a30b2dba951c1d965b3121006",
+    "zh:c5510eca023cec89557a8244648bf8ad9a0cd3189b6abf6dcceba30e3b2e8c6d",
+    "zh:cd11fe9c83793e838b6f90a55840fc45e7c106b358a68f0a88db09a29a321c9a",
+    "zh:e451ad353f219a2922b92e786a93c31658168b896317be127798cddfa9a99363",
+    "zh:e4b70a70e925b9ccb7d44e17fd8e7b89aa744a965f298f8bb2480a5c96f3c4f0",
+  ]
+}

+ 24 - 0
README.md

@@ -0,0 +1,24 @@
+# AWS Infrastructure Engineer Assessment
+
+## Goals
+
+Create a [Terraform](terraform.io/) configuration that will:
+
+* Provision a pool of micro EC2 servers running Ubuntu 22.04
+* The servers should be placed in an auto-scaling group behind an Application Load Balancer
+* The servers should not be directly accessible on any port except TCP/22 for SSH access
+* HTTP and HTTPS traffic should only be allowed via the Load Balancer
+* Upon first boot, each EC2 server should update itself to the latest packages available in APT
+
+## Getting Started
+
+* Fork this repository to your own account
+* When completed, open a Pull Request to this main repository
+* Describe the intent of the code and the approach taken in the Pull Request description
+
+
+## Guidelines
+
+* Be sure to commit any relevant files so that the configuration can be tested as-is by just running `terraform apply`
+* Please use `terraform fmt` and `terraform fmt -check` to ensure the Terraform configuration is properly formatted and valid
+

+ 1 - 0
terraform.tf

@@ -0,0 +1 @@
+provider "aws" {}

+ 0 - 0
terraform.tfvars