From 4030f1b34d97dcb941821d0592b4a17b8abc5871 Mon Sep 17 00:00:00 2001 From: chibaba Date: Wed, 28 Feb 2024 23:29:58 +0100 Subject: [PATCH] setting up ec2 instance on apache server --- infras/gitops3/iteration3/providers.tf | 17 +++++++++++++++++ infras/gitops3/iteration3/terraform.auto.tfvars | 4 ++++ 2 files changed, 21 insertions(+) diff --git a/infras/gitops3/iteration3/providers.tf b/infras/gitops3/iteration3/providers.tf index e69de29..09bb701 100644 --- a/infras/gitops3/iteration3/providers.tf +++ b/infras/gitops3/iteration3/providers.tf @@ -0,0 +1,17 @@ +# Setting and locking the Dependencies +terraform { + required_providers { + aws = { + source = "hashicorp/aws" + version = "4.10" + } + } + + required_version = ">= 1.1.0" +} + +# Feeding the AWS providers with the data it needs +provider "aws" { + # Set the default region + region = var.region +} \ No newline at end of file diff --git a/infras/gitops3/iteration3/terraform.auto.tfvars b/infras/gitops3/iteration3/terraform.auto.tfvars index e69de29..a92359d 100644 --- a/infras/gitops3/iteration3/terraform.auto.tfvars +++ b/infras/gitops3/iteration3/terraform.auto.tfvars @@ -0,0 +1,4 @@ +environment = "dev" +region = "us-east-2" +ssh_key_name = "gitops" +instance_type = "t2.micro" \ No newline at end of file