Skip to content

Commit 323b11c

Browse files
committed
destroyable acm certificate, added TF_VARs for validation
1 parent 44f834c commit 323b11c

File tree

2 files changed

+12
-8
lines changed

2 files changed

+12
-8
lines changed

.github/workflows/test.yaml

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,35 +3,39 @@ on:
33
- push
44
jobs:
55
example:
6-
name: "Terraform Actions"
6+
name: "Terraform"
77
runs-on: ubuntu-latest
88
steps:
99
- name: "Checkout"
1010
uses: actions/checkout@master
11-
- name: "Terraform Format"
11+
- name: "Format"
1212
uses: hashicorp/terraform-github-actions@master
1313
with:
14-
tf_actions_version: 0.11.0
14+
tf_actions_version: 0.12.13
1515
tf_actions_subcommand: "fmt"
1616
tf_actions_working_dir: "."
1717
tf_actions_comment: true
1818
env:
1919
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
20-
- name: "Terraform Init"
20+
- name: "Init"
2121
uses: hashicorp/terraform-github-actions@master
2222
with:
23-
tf_actions_version: 0.11.0
23+
tf_actions_version: 0.12.13
2424
tf_actions_subcommand: "init"
2525
tf_actions_working_dir: "."
2626
tf_actions_comment: true
2727
env:
2828
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
29-
- name: "Terraform Validate"
29+
- name: "Validate"
3030
uses: hashicorp/terraform-github-actions@master
3131
with:
32-
tf_actions_version: 0.11.0
32+
tf_actions_version: 0.12.13
3333
tf_actions_subcommand: "validate"
3434
tf_actions_working_dir: "."
3535
tf_actions_comment: true
3636
env:
3737
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
38+
TF_VAR_name: "name"
39+
TF_VAR_hosted_zone: "hosted_zone"
40+
TF_VAR_domain_name: "domain_name"
41+
AWS_DEFAULT_REGION: "us-west-1"

main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ resource "aws_acm_certificate" "default" {
1010

1111
tags = "${merge(
1212
map(
13-
Name, "${var.name}"
13+
"Name", "${var.name}"
1414
),
1515
"${var.tags}")}"
1616
}

0 commit comments

Comments
 (0)