diff --git a/.github/workflows/auto-readme.yml b/.github/workflows/auto-readme.yml new file mode 100644 index 0000000..6229e60 --- /dev/null +++ b/.github/workflows/auto-readme.yml @@ -0,0 +1,41 @@ +name: "auto-readme" +on: + schedule: + # Update README.md nightly + - cron: '0 4 * * *' + +jobs: + update: + if: github.event_name == 'schedule' + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + + - name: Update readme + shell: bash + id: update + env: + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" + run: | + make init + make readme/build + + - name: Create Pull Request + uses: cloudposse/actions/github/create-pull-request@0.20.0 + with: + token: ${{ secrets.PUBLIC_REPO_ACCESS_TOKEN }} + commit-message: Update README.md and docs + title: Update README.md and docs + body: |- + ## what + This is an auto-generated PR that updates the README.md and docs + + ## why + To have most recent changes of README.md and doc from origin templates + + branch: auto-update/readme + base: master + delete-branch: true + labels: | + auto-update + readme diff --git a/LICENSE b/LICENSE index eb114f2..1610844 100644 --- a/LICENSE +++ b/LICENSE @@ -186,7 +186,7 @@ same "printed page" as the copyright notice for easier identification within third-party archives. - Copyright 2018-2019 Cloud Posse, LLC + Copyright 2018-2021 Cloud Posse, LLC Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/README.md b/README.md index ec40ea7..d1d1101 100644 --- a/README.md +++ b/README.md @@ -112,7 +112,9 @@ For automated test of the complete example using `bats` and `Terratest`, see [te } module "alb" { - source = "git::https://github.com/cloudposse/terraform-aws-alb.git?ref=master" + source = "cloudposse/alb/aws" + # Cloud Posse recommends pinning every module to a specific version + # version = "x.x.x" namespace = var.namespace stage = var.stage name = var.name diff --git a/README.yaml b/README.yaml index 694435a..1116c29 100644 --- a/README.yaml +++ b/README.yaml @@ -55,7 +55,9 @@ usage: |- } module "alb" { - source = "git::https://github.com/cloudposse/terraform-aws-alb.git?ref=master" + source = "cloudposse/alb/aws" + # Cloud Posse recommends pinning every module to a specific version + # version = "x.x.x" namespace = var.namespace stage = var.stage name = var.name diff --git a/examples/complete/main.tf b/examples/complete/main.tf index fe126ce..e68435a 100644 --- a/examples/complete/main.tf +++ b/examples/complete/main.tf @@ -3,13 +3,15 @@ provider "aws" { } module "vpc" { - source = "git::https://github.com/cloudposse/terraform-aws-vpc.git?ref=tags/0.17.0" + source = "cloudposse/vpc/aws" + version = "0.18.2" cidr_block = var.vpc_cidr_block context = module.this.context } module "subnets" { - source = "git::https://github.com/cloudposse/terraform-aws-dynamic-subnets.git?ref=tags/0.30.0" + source = "cloudposse/dynamic-subnets/aws" + version = "0.34.0" availability_zones = var.availability_zones vpc_id = module.vpc.vpc_id igw_id = module.vpc.igw_id diff --git a/examples/complete/versions.tf b/examples/complete/versions.tf index 8cff2e6..5947f14 100644 --- a/examples/complete/versions.tf +++ b/examples/complete/versions.tf @@ -1,10 +1,22 @@ terraform { - required_version = ">= 0.12.0, < 0.14.0" + required_version = ">= 0.12.26" required_providers { - aws = "~> 2.0" - template = "~> 2.0" - null = "~> 2.0" - local = "~> 1.3" + aws = { + source = "hashicorp/aws" + version = ">= 2.0" + } + template = { + source = "hashicorp/template" + version = ">= 2.0" + } + null = { + source = "hashicorp/null" + version = ">= 2.0" + } + local = { + source = "hashicorp/local" + version = ">= 1.3" + } } } diff --git a/main.tf b/main.tf index ce12e84..fba6d28 100644 --- a/main.tf +++ b/main.tf @@ -40,7 +40,7 @@ resource "aws_security_group_rule" "https_ingress" { module "access_logs" { source = "cloudposse/lb-s3-bucket/aws" - version = "0.9.0" + version = "0.10.0" enabled = module.this.enabled && var.access_logs_enabled name = module.this.name namespace = module.this.namespace