Skip to content

Commit 3062c72

Browse files
Gowiemjohncblandiidanjbhactions-bot
authored
Adds a handful of fixes + enhancements to the module (#6)
Co-authored-by: John C. Bland II <johncblandii@users.noreply.github.com> Co-authored-by: Dan Meyers <danjbh@users.noreply.github.com> Co-authored-by: actions-bot <58130806+actions-bot@users.noreply.github.com>
1 parent c856676 commit 3062c72

File tree

22 files changed

+153
-99
lines changed

22 files changed

+153
-99
lines changed

.github/workflows/chatops.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
steps:
1010
- uses: actions/checkout@v2
1111
- name: "Handle common commands"
12-
uses: cloudposse/actions/github/slash-command-dispatch@0.16.0
12+
uses: cloudposse/actions/github/slash-command-dispatch@0.23.0
1313
with:
1414
token: ${{ secrets.PUBLIC_REPO_ACCESS_TOKEN }}
1515
reaction-token: ${{ secrets.GITHUB_TOKEN }}
@@ -24,7 +24,7 @@ jobs:
2424
- name: "Checkout commit"
2525
uses: actions/checkout@v2
2626
- name: "Run tests"
27-
uses: cloudposse/actions/github/slash-command-dispatch@0.16.0
27+
uses: cloudposse/actions/github/slash-command-dispatch@0.23.0
2828
with:
2929
token: ${{ secrets.PUBLIC_REPO_ACCESS_TOKEN }}
3030
reaction-token: ${{ secrets.GITHUB_TOKEN }}

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@ repos:
44
hooks:
55
- id: check-yaml
66
- repo: git://github.com/antonbabenko/pre-commit-terraform
7-
rev: v1.31.0
7+
rev: v1.45.0
88
hooks:
99
- id: terraform_fmt

README.md

Lines changed: 19 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
1+
<!-- markdownlint-disable -->
12
# terraform-tfe-cloud-infrastructure-automation
23

34
[![Latest Release](https://img.shields.io/github/release/cloudposse/terraform-tfe-cloud-infrastructure-automation.svg)](https://github.com/cloudposse/terraform-tfe-cloud-infrastructure-automation/releases/latest) [![Slack Community](https://slack.cloudposse.com/badge.svg)](https://slack.cloudposse.com) [![Discourse Forum](https://img.shields.io/discourse/https/ask.sweetops.com/posts.svg)](https://ask.sweetops.com/)
5+
<!-- markdownlint-restore -->
46

57
[![README Header][readme_header_img]][readme_header_link]
68

@@ -66,8 +68,15 @@ We literally have [*hundreds of terraform modules*][terraform_modules] that are
6668
## Usage
6769

6870

69-
**IMPORTANT:** The `master` branch is used in `source` just as an example. In your code, do not pin to `master` because there may be breaking changes between releases.
70-
Instead pin to the release tag (e.g. `?ref=tags/x.y.z`) of one of our [latest releases](https://github.com/cloudposse/terraform-tfe-cloud-infrastructure-automation/releases).
71+
**IMPORTANT:** We do not pin modules to versions in our examples because of the
72+
difficulty of keeping the versions in the documentation in sync with the latest released versions.
73+
We highly recommend that in your code you pin the version to the exact version you are
74+
using so that your infrastructure remains stable, and update versions in a
75+
systematic way so that they do not catch you by surprise.
76+
77+
Also, because of a bug in the Terraform registry ([hashicorp/terraform#21417](https://github.com/hashicorp/terraform/issues/21417)),
78+
the registry shows many of our inputs as required when in fact they are optional.
79+
The table below correctly indicates which inputs are required.
7180

7281

7382
Here's how to invoke this example module in your projects:
@@ -125,8 +134,9 @@ projects:
125134
terraform_version: 0.13.4
126135
# Controls the `auto_apply` setting within this workspace
127136
auto_apply: true
128-
# Optional filename trigger to match (default is *.tf)
129-
filename_trigger: "*.*"
137+
# Optional filename triggers to match (default is *.tf)
138+
filename_triggers:
139+
- "*.*"
130140
# Add extra 'Run Triggers' to this workspace, beyond the parent workspace, which is created by default
131141
# These triggers mean this project workspace will be automatically planned if any of these workspaces are applied.
132142
triggers:
@@ -166,13 +176,13 @@ Available targets:
166176
| terraform | >= 0.13.0 |
167177
| local | >= 1.4 |
168178
| random | >= 2.2 |
169-
| tfe | >= 0.21.0 |
179+
| tfe | >= 0.23.0 |
170180
171181
## Providers
172182
173183
| Name | Version |
174184
|------|---------|
175-
| tfe | >= 0.21.0 |
185+
| tfe | >= 0.23.0 |
176186
177187
## Inputs
178188
@@ -310,7 +320,7 @@ In general, PRs are welcome. We follow the typical "fork-and-pull" Git workflow.
310320

311321
## Copyrights
312322

313-
Copyright © 2020-2020 [Cloud Posse, LLC](https://cloudposse.com)
323+
Copyright © 2020-2021 [Cloud Posse, LLC](https://cloudposse.com)
314324

315325

316326

@@ -369,8 +379,10 @@ Check out [our other projects][github], [follow us on twitter][twitter], [apply
369379

370380
### Contributors
371381

382+
<!-- markdownlint-disable -->
372383
| [![Erik Osterman][osterman_avatar]][osterman_homepage]<br/>[Erik Osterman][osterman_homepage] | [![Dan Meyers][danjbh_avatar]][danjbh_homepage]<br/>[Dan Meyers][danjbh_homepage] |
373384
|---|---|
385+
<!-- markdownlint-restore -->
374386

375387
[osterman_homepage]: https://github.com/osterman
376388
[osterman_avatar]: https://img.cloudposse.com/150x150/https://github.com/osterman.png

README.yaml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ examples: |-
9292
- [`examples/complete`](https://github.com/cloudposse/terraform-tfe-cloud-infrastructure-automation/) - complete example of using this module
9393
9494
We use YAML for the configuration files in order to separate configuration settings from business logic. It's also a portable format that can be used across multiple tools. Our convention is to name files by `$env-$stage.yaml` (e.g. `ue2-testing.yaml`), so for example an `$env` could be `ue2` (for `us-east-2`) and the `$stage` might be `testing`. Workspace names are derived from the `$env-$stage-$project`, which looks like `ue2-testing-eks`.
95-
95+
9696
```yaml
9797
# Projects are all the top-level root modules
9898
projects:
@@ -115,8 +115,9 @@ examples: |-
115115
terraform_version: 0.13.4
116116
# Controls the `auto_apply` setting within this workspace
117117
auto_apply: true
118-
# Optional filename trigger to match (default is *.tf)
119-
filename_trigger: "*.*"
118+
# Optional filename triggers to match (default is *.tf)
119+
filename_triggers:
120+
- "*.*"
120121
# Add extra 'Run Triggers' to this workspace, beyond the parent workspace, which is created by default
121122
# These triggers mean this project workspace will be automatically planned if any of these workspaces are applied.
122123
triggers:

context.tf

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,10 @@
1818
# will be null, and `module.this.delimiter` will be `-` (hyphen).
1919
#
2020

21+
2122
module "this" {
22-
source = "git::https://github.com/cloudposse/terraform-null-label.git?ref=tags/0.19.2"
23+
source = "cloudposse/label/null"
24+
version = "0.22.1" // requires Terraform >= 0.12.26
2325

2426
enabled = var.enabled
2527
namespace = var.namespace

docs/terraform.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@
66
| terraform | >= 0.13.0 |
77
| local | >= 1.4 |
88
| random | >= 2.2 |
9-
| tfe | >= 0.21.0 |
9+
| tfe | >= 0.23.0 |
1010

1111
## Providers
1212

1313
| Name | Version |
1414
|------|---------|
15-
| tfe | >= 0.21.0 |
15+
| tfe | >= 0.23.0 |
1616

1717
## Inputs
1818

examples/complete/config/ue2-testing.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,9 @@ projects:
88
workspace_enabled: true
99
terraform_version: 0.13.4
1010
auto_apply: true
11-
# Optional filename trigger to match (default is *.tf)
12-
filename_trigger: "*.*"
11+
# Optional filename triggers to match (default is *.tf)
12+
filename_triggers:
13+
- "*.*"
1314
triggers:
1415
- uw2-testing-example2
1516
- gbl-root-example1

examples/complete/context.tf

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,10 @@
1818
# will be null, and `module.this.delimiter` will be `-` (hyphen).
1919
#
2020

21+
2122
module "this" {
22-
source = "git::https://github.com/cloudposse/terraform-null-label.git?ref=tags/0.19.2"
23+
source = "cloudposse/label/null"
24+
version = "0.22.1" // requires Terraform >= 0.12.26
2325

2426
enabled = var.enabled
2527
namespace = var.namespace
File renamed without changes.

examples/complete/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
provider "tfe" {
33
hostname = var.tfe_hostname
44
token = var.tfe_token
5-
version = ">= 0.21.0"
5+
version = ">= 0.23.0"
66
}
77

88
module "example" {

0 commit comments

Comments
 (0)