Skip to content

Commit dc27e4b

Browse files
committed
Merge branch 'main' into clstokes/eks-operator
2 parents 9bb7067 + 1f31344 commit dc27e4b

File tree

25 files changed

+107
-32
lines changed

25 files changed

+107
-32
lines changed

.github/workflows/terraform-examples.yml

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,32 +9,44 @@ on:
99

1010
jobs:
1111

12-
check-terraform-fmt:
12+
terraform-tflint:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Check out code
16+
uses: actions/checkout@v4
17+
- name: Setup TFLint
18+
uses: terraform-linters/setup-tflint@v6
19+
with:
20+
cache: true
21+
- name: Show version
22+
run: tflint --version
23+
# - name: help
24+
# run: tflint -help
25+
- name: Run
26+
run: tflint --chdir=terraform --recursive
27+
28+
terraform-check-fmt:
1329
runs-on: ubuntu-latest
1430
steps:
1531
- name: Check out code
1632
uses: actions/checkout@v4
17-
1833
- name: Install Terraform
1934
uses: hashicorp/setup-terraform@v2
20-
2135
- name: Check Terraform formatting
2236
run: |
2337
bash terraform/repo-scripts/check-terraform-fmt.sh terraform
2438
25-
check-terraform-variables-tailscale-install-scripts:
39+
terraform-check-variables-tailscale-install-scripts:
2640
runs-on: ubuntu-latest
2741
steps:
2842
- name: Check out code
2943
uses: actions/checkout@v4
30-
3144
# - name: tree
3245
# working-directory: terraform
3346
# run: |
3447
# apt-get -y update
3548
# apt-get -y install tree
3649
# tree -a
37-
3850
- name: Check variables-tailscale-install-scripts.tf files
3951
run: |
4052
bash terraform/repo-scripts/check-variables-tailscale-install-scripts.sh terraform

Makefile

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
11
default: help
22

3+
.PHONY: terraform-tflint
4+
terraform-tflint: ## Run 'terraform-tflint' github actions with https://github.com/nektos/act
5+
act -j terraform-tflint
6+
37
.PHONY: check-terraform-examples
4-
check-terraform-examples: ## Run specific 'check' github actions with https://github.com/nektos/act
5-
act -j check-terraform-fmt
6-
act -j check-variables-tailscale-install-scripts
8+
terraform-check-examples: ## Run specific 'check' github actions with https://github.com/nektos/act
9+
act -j terraform-check-fmt
10+
act -j terraform-check-variables-tailscale-install-scripts
711

812
.PHONY: help
913
help: ## Display this information. Default target.

terraform/.tflint.hcl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
plugin "terraform" {
2+
enabled = true
3+
preset = "all"
4+
}
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,14 @@
11
terraform {
22
required_providers {
3+
aws = {
4+
source = "hashicorp/aws"
5+
version = ">= 6.0, < 7.0"
6+
}
37
tailscale = {
48
source = "tailscale/tailscale"
59
version = ">= 0.24"
610
}
711
}
12+
13+
required_version = ">= 1.0, < 2.0"
814
}
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,14 @@
11
terraform {
22
required_providers {
3+
aws = {
4+
source = "hashicorp/aws"
5+
version = ">= 6.0, < 7.0"
6+
}
37
tailscale = {
48
source = "tailscale/tailscale"
59
version = ">= 0.24"
610
}
711
}
12+
13+
required_version = ">= 1.0, < 2.0"
814
}
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,14 @@
11
terraform {
22
required_providers {
3+
aws = {
4+
source = "hashicorp/aws"
5+
version = ">= 6.0, < 7.0"
6+
}
37
tailscale = {
48
source = "tailscale/tailscale"
59
version = ">= 0.24"
610
}
711
}
12+
13+
required_version = ">= 1.0, < 2.0"
814
}

terraform/aws/aws-ec2-instance-dual-stack-ipv4-ipv6/outputs.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ output "nat_public_ips" {
1515
}
1616

1717
output "instance_ids" {
18-
value = module.tailscale_aws_ec2.*.instance_id
18+
value = module.tailscale_aws_ec2[*].instance_id
1919
}
2020

2121
output "user_data_md5" {
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,14 @@
11
terraform {
22
required_providers {
3+
aws = {
4+
source = "hashicorp/aws"
5+
version = ">= 6.0, < 7.0"
6+
}
37
tailscale = {
48
source = "tailscale/tailscale"
59
version = ">= 0.24"
610
}
711
}
12+
13+
required_version = ">= 1.0, < 2.0"
814
}

terraform/aws/aws-ec2-instance/outputs.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ output "nat_public_ips" {
1515
}
1616

1717
output "instance_ids" {
18-
value = module.tailscale_aws_ec2.*.instance_id
18+
value = module.tailscale_aws_ec2[*].instance_id
1919
}
2020

2121
output "user_data_md5" {
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,14 @@
11
terraform {
22
required_providers {
3+
aws = {
4+
source = "hashicorp/aws"
5+
version = ">= 6.0, < 7.0"
6+
}
37
tailscale = {
48
source = "tailscale/tailscale"
59
version = ">= 0.24"
610
}
711
}
12+
13+
required_version = ">= 1.0, < 2.0"
814
}

0 commit comments

Comments
 (0)