Skip to content

Commit 9cb95ae

Browse files
authored
Terraform 0.14 upgrade (#36)
* Terraform 0.14 upgrade * workflows updated
1 parent 58ffea8 commit 9cb95ae

File tree

2 files changed

+45
-3
lines changed

2 files changed

+45
-3
lines changed

.github/workflows/auto-readme.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: "auto-readme"
2+
on:
3+
schedule:
4+
# Update README.md nightly
5+
- cron: '0 4 * * *'
6+
7+
jobs:
8+
update:
9+
if: github.event_name == 'schedule'
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v2
13+
14+
- name: Update readme
15+
shell: bash
16+
id: update
17+
env:
18+
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
19+
run: |
20+
make init
21+
make readme/build
22+
23+
- name: Create Pull Request
24+
uses: cloudposse/actions/github/[email protected]
25+
with:
26+
token: ${{ secrets.PUBLIC_REPO_ACCESS_TOKEN }}
27+
commit-message: Update README.md and docs
28+
title: Update README.md and docs
29+
body: |-
30+
## what
31+
This is an auto-generated PR that updates the README.md and docs
32+
33+
## why
34+
To have most recent changes of README.md and doc from origin templates
35+
36+
branch: auto-update/readme
37+
base: master
38+
delete-branch: true
39+
labels: |
40+
auto-update
41+
readme

examples/complete/main.tf

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,10 @@ provider "aws" {
55
module "zone" {
66
source = "cloudposse/route53-cluster-zone/aws"
77
version = "0.12.0"
8-
namespace = var.namespace
9-
stage = var.stage
10-
name = var.name
118
parent_zone_name = var.parent_zone_name
129
zone_name = "$${name}.$${parent_zone_name}"
10+
11+
context = module.this.context
1312
}
1413

1514
module "acm_request_certificate" {
@@ -20,4 +19,6 @@ module "acm_request_certificate" {
2019
subject_alternative_names = ["*.${module.zone.zone_name}"]
2120
process_domain_validation_options = var.process_domain_validation_options
2221
wait_for_certificate_issued = var.wait_for_certificate_issued
22+
23+
context = module.this.context
2324
}

0 commit comments

Comments
 (0)