Skip to content

Commit

Permalink
feature #1 - Update terraform backend to terraform cloud
Browse files Browse the repository at this point in the history
  • Loading branch information
Eugeniosales committed Oct 15, 2022
1 parent 4bb9115 commit 668e164
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 5 deletions.
4 changes: 0 additions & 4 deletions .github/workflows/terraform.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,6 @@ jobs:
working-directory: ./terraform
run: terraform init

- name: Terraform Format
working-directory: ./terraform
run: terraform fmt -check

- name: Terraform Plan
working-directory: ./terraform
run: terraform plan -input=false
Expand Down
17 changes: 16 additions & 1 deletion terraform/main.tf
Original file line number Diff line number Diff line change
@@ -1,10 +1,25 @@
terraform {
required_providers {
aws = {
source = "hashicorp/aws"
version = "3.26.0"
}
random = {
source = "hashicorp/random"
version = "3.0.1"
}
}
required_version = ">= 1.1.0"

backend "remote" {
cloud {
organization = "Eugeniosales"

workspaces {
name = "gh-actions-demo"
}
}
}

provider "aws" {
region = "us-west-1"
}

0 comments on commit 668e164

Please sign in to comment.