Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
chibaba committed Mar 6, 2024
1 parent 566bc0e commit 0fd100e
Show file tree
Hide file tree
Showing 4 changed files with 44 additions and 0 deletions.
3 changes: 3 additions & 0 deletions infras/gitops4/prod.hcl
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
workspaces { name = "prod" }
hostname = "app.terraform.io"
organization = "practicalgitops"
17 changes: 17 additions & 0 deletions infras/gitops4/providers.tf
Original file line number Diff line number Diff line change
@@ -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
}
2 changes: 2 additions & 0 deletions infras/gitops4/terraform.auto.tfvars
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
ssh_key_name = "gitops"
instance_type = "t2.micro"
22 changes: 22 additions & 0 deletions infras/gitops4/variables.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Variable Declaration
variable "environment" {
description = "The environment e.g uat or prod or dev"
type = string
}

variable "region" {
description = "The region where we wish to deploy to"
type = string
}

variable "ssh_key_name" {
description = "SSH Keyname"
type = string
}

variable "instance_type" {
description = "EC2 instance type"
type = string
}


0 comments on commit 0fd100e

Please sign in to comment.