From 279926fcc48ae98353651e8046c87e109ca2e6b7 Mon Sep 17 00:00:00 2001 From: Patrick de Ruiter Date: Mon, 11 May 2020 23:20:27 +0200 Subject: [PATCH] Initial Commit --- .gitignore | 29 +++++++++++++++++++++++++++++ backend.tf | 9 +++++++++ data.tf | 0 main.tf | 0 outputs.tf | 0 terraform.tfvars | 0 variables.tf | 22 ++++++++++++++++++++++ 7 files changed, 60 insertions(+) create mode 100644 .gitignore create mode 100644 backend.tf create mode 100644 data.tf create mode 100644 main.tf create mode 100644 outputs.tf create mode 100644 terraform.tfvars create mode 100644 variables.tf diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..30f5923 --- /dev/null +++ b/.gitignore @@ -0,0 +1,29 @@ +### Terraform ### +# 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/backend.tf b/backend.tf new file mode 100644 index 0000000..0887bb2 --- /dev/null +++ b/backend.tf @@ -0,0 +1,9 @@ +terraform { + backend "remote" { + organization = "webuildyourcloud" + + workspaces { + name = "wbyc-master" + } + } +} diff --git a/data.tf b/data.tf new file mode 100644 index 0000000..e69de29 diff --git a/main.tf b/main.tf new file mode 100644 index 0000000..e69de29 diff --git a/outputs.tf b/outputs.tf new file mode 100644 index 0000000..e69de29 diff --git a/terraform.tfvars b/terraform.tfvars new file mode 100644 index 0000000..e69de29 diff --git a/variables.tf b/variables.tf new file mode 100644 index 0000000..29a03f1 --- /dev/null +++ b/variables.tf @@ -0,0 +1,22 @@ +variable "organization" { + description = "Organization Name" + type = string + default = "wbyc" +} +variable "environment" { + description = "Environment Name" + type = string + default = "prod" +} + +variable "region" { + description = "Default Region to set" + type = string + default = "eu-west-1" +} + +variable "availability-zone-names" { + description = "List of Availability zone names" + type = list(string) + default = [ "eu-west-1a" ] +}