Skip to content
This repository was archived by the owner on Jul 20, 2024. It is now read-only.
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit f4c9210

Browse files
authoredJan 1, 2022
Run validation on GitHub Actions (#41)
* Run validation on GitHub Actions * Update terraform.yaml * Fix fmt errors
1 parent 812f681 commit f4c9210

File tree

3 files changed

+26
-15
lines changed

3 files changed

+26
-15
lines changed
 

‎.circleci/config.yml

Lines changed: 0 additions & 9 deletions
This file was deleted.

‎.github/workflows/terraform.yaml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: terraform
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
paths:
9+
- .github/workflows/terraform.yaml
10+
- '**/*.tf'
11+
- '**/.terraform.*'
12+
13+
jobs:
14+
validate:
15+
runs-on: ubuntu-latest
16+
timeout-minutes: 10
17+
steps:
18+
- uses: actions/checkout@v2
19+
- uses: hashicorp/setup-terraform@v1
20+
- run: make

‎variables.tf

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,12 @@ variable "public_subnet" {
2121

2222
variable "private_subnets_cidr_blocks" {
2323
description = "List of CIDR blocks of the private subnets. The NAT instance accepts connections from this subnets"
24-
type = list
24+
type = list(string)
2525
}
2626

2727
variable "private_route_table_ids" {
2828
description = "List of ID of the route tables for the private subnets. You can set this to assign the each default route to the NAT instance"
29-
type = list
29+
type = list(string)
3030
default = []
3131
}
3232

@@ -38,7 +38,7 @@ variable "image_id" {
3838

3939
variable "instance_types" {
4040
description = "Candidates of spot instance type for the NAT instance. This is used in the mixed instances policy"
41-
type = list
41+
type = list(string)
4242
default = ["t3.nano", "t3a.nano"]
4343
}
4444

@@ -56,19 +56,19 @@ variable "key_name" {
5656

5757
variable "tags" {
5858
description = "Tags applied to resources created with this module"
59-
type = map
59+
type = map(string)
6060
default = {}
6161
}
6262

6363
variable "user_data_write_files" {
6464
description = "Additional write_files section of cloud-init"
65-
type = list
65+
type = list(any)
6666
default = []
6767
}
6868

6969
variable "user_data_runcmd" {
7070
description = "Additional runcmd section of cloud-init"
71-
type = list
71+
type = list(list(string))
7272
default = []
7373
}
7474

0 commit comments

Comments
 (0)
This repository has been archived.