Skip to content
Open
Show file tree
Hide file tree
Changes from 7 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/terraform.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
name: "Terraform"

on:
push:
branches:
Expand Down Expand Up @@ -71,6 +70,7 @@ jobs:
if: steps.plan.outcome == 'failure'
run: exit 1


- name: Terraform Apply
if: github.ref == 'refs/heads/main' && github.event_name == 'push'
run: terraform apply -auto-approve
6 changes: 3 additions & 3 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -12,21 +12,21 @@ terraform {
required_version = "~> 1.0"

backend "remote" {
organization = "REPLACE_ME"
organization = "ACG-Terraform-pradip"

workspaces {
name = "REPLACE_ME"
name = "demo-github-action"
}
}
}



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



resource "random_pet" "sg" {}

resource "aws_instance" "web" {
Expand Down