Skip to content

Commit 6b4b9b5

Browse files
committed
Add terraform from aws quickstart + minor modifications
1 parent 23ec7ec commit 6b4b9b5

File tree

3 files changed

+5
-23
lines changed

3 files changed

+5
-23
lines changed

README.md

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1 @@
1-
# quickstart-actions-aws
2-
3-
This is the repository for a sample quickstart action with digger.
4-
5-
# backend
6-
this folder will provision (most) of the backend required.
7-
Main.tf provisions the following resources.
8-
9-
1. The Backend state bucket for terraform to store state in
10-
2. The required DynamoDB table for Digger to store locks.
11-
12-
# prod
13-
This is a sample terraform prod code that will (if given the chance) spin up a vpc + an EC2 instance, and required security groups.
14-
The instance is locked down to not be accessible from outside the network.
15-
16-
# .github/workflows
17-
Contains digger-plan.yml with two different potential ways of authenticating against an AWS account. Please review the main digger documentation on details as to which scheme to use.
1+
# demo-infracost-append

backend/main.tf

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ terraform {
22
required_providers {
33
aws = {
44
source = "hashicorp/aws"
5-
version = "5.24.0"
5+
version = "5.29.0"
66
}
77
}
88
}
@@ -13,12 +13,10 @@ provider "aws" {
1313

1414
variable "bucket_id" {
1515
type = string
16-
default = "digger-s3backend-quickstart-aws"
1716
}
1817

1918
variable "dynamo_lock_table_id" {
2019
type = string
21-
default = "digger-locktable-quickstart-aws"
2220
}
2321

2422
resource "aws_s3_bucket" "example" {

prod/main.tf

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@ terraform {
22
required_providers {
33
aws = {
44
source = "hashicorp/aws"
5-
version = "5.24.0"
5+
version = "5.29.0"
66
}
77
}
88
backend "s3" {
9-
bucket = "digger-s3backend-quickstart-aws" # Change if a different S3 bucket name was used for the backend
9+
bucket = "digger-s3backend-demo-infracost-append" # Change if a different S3 bucket name was used for the backend
1010
/* Un-comment to use DynamoDB state locking
11-
dynamodb_table = "digger-locktable-quickstart-aws" # Change if a different DynamoDB table name was used for backend
11+
dynamodb_table = "digger-locktable" # Change if a different DynamoDB table name was used for backend
1212
*/
1313
key = "terraform/state"
1414
region = "us-east-1"

0 commit comments

Comments
 (0)