Skip to content

Commit b075310

Browse files
committed
Add Terraform remote config
1 parent 4aec0f3 commit b075310

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed

infrastructure/backend.tf

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
terraform {
2+
backend "remote" {
3+
hostname = "app.terraform.io"
4+
organization = "mattertwo"
5+
6+
workspaces {
7+
name = "mattertwo-github-io"
8+
}
9+
}
10+
}

infrastructure/main.tf

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
terraform {
2+
required_providers {
3+
aws = {
4+
source = "hashicorp/aws"
5+
version = "~> 4.16"
6+
}
7+
}
8+
9+
required_version = ">= 1.2.0"
10+
}
11+
12+
provider "aws" {
13+
region = "eu-west-2"
14+
}

0 commit comments

Comments
 (0)