Skip to content
This repository was archived by the owner on Jul 20, 2024. It is now read-only.

Commit 2d0f0e3

Browse files
authored
Bump version of Terraform on CI (#13)
* Bump version of Terraform on CI * Bump version of terraform-docs
1 parent 2efab55 commit 2d0f0e3

File tree

3 files changed

+26
-22
lines changed

3 files changed

+26
-22
lines changed

‎.circleci/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ version: "2"
22
jobs:
33
build:
44
docker:
5-
- image: hashicorp/terraform:0.12.8
5+
- image: hashicorp/terraform:0.12.24
66
steps:
77
- checkout
88
- run: apk add make

‎Makefile

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,9 @@ all: check README.md
33
.PHONY: check
44
check:
55
terraform fmt -check=true -diff=true
6-
AWS_REGION=us-east-1 terraform validate \
7-
-var name=nat \
8-
-var vpc_id=vpc-XXXXXXXX \
9-
-var public_subnet=subnet-XXXXXXXX \
10-
-var private_subnets_cidr_blocks=172.18.0.0/20
6+
AWS_REGION=us-east-1 terraform validate
117

128
README.md: variables.tf outputs.tf
139
sed -e '/^<!--terraform-docs-->/q' $@ > $@.tmp
14-
terraform-docs --with-aggregate-type-defaults md variables.tf outputs.tf >> $@.tmp
10+
terraform-docs md . >> $@.tmp
1511
mv $@.tmp $@

‎README.md

Lines changed: 23 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -150,27 +150,35 @@ This is an open source software. Feel free to open issues and pull requests.
150150

151151

152152
<!--terraform-docs-->
153+
## Requirements
154+
155+
No requirements.
156+
157+
## Providers
158+
159+
| Name | Version |
160+
|------|---------|
161+
| aws | n/a |
162+
153163
## Inputs
154164

155165
| Name | Description | Type | Default | Required |
156-
|------|-------------|:----:|:-----:|:-----:|
157-
| enabled | Enable or disable costly resources| boolean | `true` | no |
158-
| extra\_user\_data | Extra script to run in the NAT instance | string | `""` | no |
159-
| image\_id | AMI of the NAT instance. Default to the latest Amazon Linux 2 | string | `""` | no |
160-
| instance\_types | Candidates of instance type for the NAT instance. This is used in the mixed instances policy | list | `[ "t3.nano", "t3a.nano" ]` | no |
161-
| use_spot_instance | Whether to use spot or on-demand EC2 instance | boolean | true | no |
162-
| key\_name | Name of the key pair for the NAT instance. You can set this to assign the key pair to the NAT instance | string | `""` | no |
163-
| name | Name for all the resources as identifier | string | n/a | yes |
164-
| private\_route\_table\_ids | 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 | list | `[]` | no |
165-
| private\_subnets\_cidr\_blocks | List of CIDR blocks of the private subnets. The NAT instance accepts connections from this subnets | string | n/a | yes |
166-
| public\_subnet | ID of the public subnet to place the NAT instance | string | n/a | yes |
167-
| vpc\_id | ID of the VPC | string | n/a | yes |
168-
| tags | Tags to be applied to resources | map(string) | {} | no |
166+
|------|-------------|------|---------|:--------:|
167+
| enabled | Enable or not costly resources | `bool` | `true` | no |
168+
| extra\_user\_data | Extra script to run in the NAT instance | `string` | `""` | no |
169+
| image\_id | AMI of the NAT instance. Default to the latest Amazon Linux 2 | `string` | `""` | no |
170+
| instance\_types | Candidates of spot instance type for the NAT instance. This is used in the mixed instances policy | `list` | <pre>[<br> "t3.nano",<br> "t3a.nano"<br>]</pre> | no |
171+
| key\_name | Name of the key pair for the NAT instance. You can set this to assign the key pair to the NAT instance | `string` | `""` | no |
172+
| name | Name for all the resources as identifier | `any` | n/a | yes |
173+
| private\_route\_table\_ids | 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 | `list` | `[]` | no |
174+
| private\_subnets\_cidr\_blocks | List of CIDR blocks of the private subnets. The NAT instance accepts connections from this subnets | `any` | n/a | yes |
175+
| public\_subnet | ID of the public subnet to place the NAT instance | `any` | n/a | yes |
176+
| tags | Tags applied to resources created with this module | `map` | `{}` | no |
177+
| use\_spot\_instance | Whether to use spot or on-demand EC2 instance | `bool` | `true` | no |
178+
| vpc\_id | ID of the VPC | `any` | n/a | yes |
169179

170180
## Outputs
171181

172-
Outputs are empty string for disabled costly resources.
173-
174182
| Name | Description |
175183
|------|-------------|
176184
| eip\_id | ID of the Elastic IP |

0 commit comments

Comments
 (0)