Skip to content
Closed
Show file tree
Hide file tree
Changes from all 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
13 changes: 5 additions & 8 deletions .github/workflows/digger_workflow.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,14 @@
name: Digger Pull Request Workflow

on:
pull_request:
types: [ opened, synchronize, reopened ]
issue_comment:
types: [created]
workflow_dispatch:
inputs:
spec:
description: 'optional digger spec'
required: false
run_name:
description: 'optional run name sent by Digger'
required: false
spec:
description: 'spec input for digger'
required: true

permissions:
contents: write
Expand All @@ -35,7 +32,7 @@ jobs:
- name: digger run
uses: diggerhq/digger@vLatest
with:
no-backend: true
digger-spec: ${{ inputs.spec }}
disable-locking: true
setup-terraform: true
env:
Expand Down
2 changes: 1 addition & 1 deletion digger.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ plan_storage:
region: us-east-1

projects:
- name: production
- name: production-pce
dir: prod
6 changes: 3 additions & 3 deletions prod/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,12 @@ terraform {
}
backend "s3" {
bucket = "amzn-digger-demo-s3" # Change if a different S3 bucket name was used for the backend
/* Un-comment to use DynamoDB state locking
dynamodb_table = "digger-locktable-quickstart-aws" # Change if a different DynamoDB table name was used for backend
*/
key = "terraform/state"
region = "us-east-1"
}
}


provider "aws" {
region = "us-east-1" # Replace with your desired AWS region
}
Expand All @@ -26,6 +24,7 @@ resource "aws_vpc" "vpc_network" {
}
}


resource "aws_subnet" "vpc_subnet" {
vpc_id = aws_vpc.vpc_network.id
cidr_block = "10.0.1.0/24"
Expand All @@ -37,6 +36,7 @@ resource "aws_subnet" "vpc_subnet" {
}
}


resource "aws_security_group" "security_group" {
vpc_id = aws_vpc.vpc_network.id
name_prefix = "terraform-"
Expand Down
Loading