From c5b619e322665cf4072b4b519381bf1ec3f22686 Mon Sep 17 00:00:00 2001 From: Joseph Peter <90427049+joey1089@users.noreply.github.com> Date: Sat, 7 Jan 2023 19:37:53 -0500 Subject: [PATCH 1/2] Create README.md --- README.md | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..e27f058 --- /dev/null +++ b/README.md @@ -0,0 +1,2 @@ +# terraformec2 +LUIT project - for Terraform From 822f2054f662f0ab5e8007d45d8287012616833c Mon Sep 17 00:00:00 2001 From: Joseph Peter Date: Mon, 9 Jan 2023 23:13:16 -0500 Subject: [PATCH 2/2] added .gitignore and variables.tf --- .gitignore | 29 +++++++++++++++++++++++++++++ ec2.tf | 4 +--- variables.tf | 0 3 files changed, 30 insertions(+), 3 deletions(-) create mode 100644 .gitignore create mode 100644 variables.tf diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..7a3e2fd --- /dev/null +++ b/.gitignore @@ -0,0 +1,29 @@ +# Local .terraform directories +**/.terraform/* + +# .tfstate files +*.tfstate +*.tfstate.* + +# Crash log files +crash.log + +# Ignore any .tfvars files that are generated automatically for each Terraform run. Most +# .tfvars files are managed as part of configuration and so should be included in +# version control. +# +# example.tfvars + +# Ignore override files as they are usually used to override resources locally and so +# are not checked in +override.tf +override.tf.json +*_override.tf +*_override.tf.json + +# Include override files you do wish to add to version control using negated pattern +# +# !example_override.tf + +# Include tfplan files to ignore the plan output of command: terraform plan -out=tfplan +# example: *tfplan* diff --git a/ec2.tf b/ec2.tf index f55bdd8..dcdbf06 100644 --- a/ec2.tf +++ b/ec2.tf @@ -5,7 +5,6 @@ terraform { version = "~> 3.27" } } - required_version = ">= 0.14.9" } @@ -17,8 +16,7 @@ provider "aws" { resource "aws_instance" "app_server" { ami = "ami-830c94e3" instance_type = "t2.micro" - tags = { - Name = "ExampleAppServerInstance" + Name = "AppServerInstance" } } diff --git a/variables.tf b/variables.tf new file mode 100644 index 0000000..e69de29