Commit 790f4d69 authored by Patrick Armitage's avatar Patrick Armitage Committed by GitHub

Add TF attribute member-clusters to available outputs (#118)

* Add TF attribute member-clusters to available outputs

* make init && make github/init

* README

* README updates
parent 83bd076d
...@@ -15,8 +15,8 @@ ...@@ -15,8 +15,8 @@
# Cloud Posse must review any changes to standard context definition, # Cloud Posse must review any changes to standard context definition,
# but some changes can be rubber-stamped. # but some changes can be rubber-stamped.
**/*.tf @cloudposse/engineering @cloudposse/approvers **/*.tf @cloudposse/engineering @cloudposse/contributors @cloudposse/approvers
README.yaml @cloudposse/engineering @cloudposse/approvers README.yaml @cloudposse/engineering @cloudposse/contributors @cloudposse/approvers
README.md @cloudposse/engineering @cloudposse/contributors @cloudposse/approvers README.md @cloudposse/engineering @cloudposse/contributors @cloudposse/approvers
docs/*.md @cloudposse/engineering @cloudposse/contributors @cloudposse/approvers docs/*.md @cloudposse/engineering @cloudposse/contributors @cloudposse/approvers
......
...@@ -46,7 +46,7 @@ template: | ...@@ -46,7 +46,7 @@ template: |
replacers: replacers:
# Remove irrelevant information from Renovate bot # Remove irrelevant information from Renovate bot
- search: '/---\s+^#.*Renovate configuration(?:.|\n)*?This PR has been generated .*/gm' - search: '/---\s+^#.*(Renovate configuration|Configuration)(?:.|\n)*?This PR has been generated .*/gm'
replace: '' replace: ''
# Remove Renovate bot banner image # Remove Renovate bot banner image
- search: '/\[!\[[^\]]*Renovate\][^\]]*\](\([^)]*\))?\s*\n+/gm' - search: '/\[!\[[^\]]*Renovate\][^\]]*\](\([^)]*\))?\s*\n+/gm'
......
...@@ -56,3 +56,10 @@ pull_request_rules: ...@@ -56,3 +56,10 @@ pull_request_rules:
changes_requested: true changes_requested: true
approved: true approved: true
message: "This Pull Request has been updated, so we're dismissing all reviews." message: "This Pull Request has been updated, so we're dismissing all reviews."
- name: "close Pull Requests without files changed"
conditions:
- "#files=0"
actions:
close:
message: "This pull request has been automatically closed by Mergify because there are no longer any changes."
...@@ -6,7 +6,7 @@ on: ...@@ -6,7 +6,7 @@ on:
jobs: jobs:
auto-format: auto-format:
runs-on: ubuntu-latest runs-on: ubuntu-latest
container: cloudposse/build-harness:slim-latest container: cloudposse/build-harness:latest
steps: steps:
# Checkout the pull request branch # Checkout the pull request branch
# "An action in a workflow run can’t trigger a new workflow run. For example, if an action pushes code using # "An action in a workflow run can’t trigger a new workflow run. For example, if an action pushes code using
...@@ -29,6 +29,8 @@ jobs: ...@@ -29,6 +29,8 @@ jobs:
- name: Auto Format - name: Auto Format
if: github.event.pull_request.state == 'open' if: github.event.pull_request.state == 'open'
shell: bash shell: bash
env:
GITHUB_TOKEN: "${{ secrets.PUBLIC_REPO_ACCESS_TOKEN }}"
run: make BUILD_HARNESS_PATH=/build-harness PACKAGES_PREFER_HOST=true -f /build-harness/templates/Makefile.build-harness pr/auto-format/host run: make BUILD_HARNESS_PATH=/build-harness PACKAGES_PREFER_HOST=true -f /build-harness/templates/Makefile.build-harness pr/auto-format/host
# Commit changes (if any) to the PR branch # Commit changes (if any) to the PR branch
......
...@@ -3,14 +3,22 @@ name: auto-release ...@@ -3,14 +3,22 @@ name: auto-release
on: on:
push: push:
branches: branches:
- main
- master - master
- production
jobs: jobs:
publish: publish:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
# Drafts your next Release notes as Pull Requests are merged into "master" # Get PR from merged commit to master
- uses: actions-ecosystem/action-get-merged-pull-request@v1
id: get-merged-pull-request
with:
github_token: ${{ secrets.PUBLIC_REPO_ACCESS_TOKEN }}
# Drafts your next Release notes as Pull Requests are merged into "main"
- uses: release-drafter/release-drafter@v5 - uses: release-drafter/release-drafter@v5
if: "!contains(steps.get-merged-pull-request.outputs.labels, 'no-release')"
with: with:
publish: true publish: true
prerelease: false prerelease: false
......
name: Validate Codeowners name: Validate Codeowners
on: on:
workflow_dispatch:
pull_request: pull_request:
jobs: jobs:
......
This diff is collapsed.
...@@ -39,6 +39,12 @@ badges: ...@@ -39,6 +39,12 @@ badges:
image: "https://slack.cloudposse.com/badge.svg" image: "https://slack.cloudposse.com/badge.svg"
url: "https://slack.cloudposse.com" url: "https://slack.cloudposse.com"
# List any related terraform modules that this module may be used with or that this module depends on.
related:
- name: "terraform-null-label"
description: "Terraform module designed to generate consistent names and tags for resources. Use terraform-null-label to implement a strict naming convention."
url: "https://github.com/cloudposse/terraform-null-label"
# Short description of this project # Short description of this project
description: |- description: |-
Terraform module to provision an [`ElastiCache`](https://aws.amazon.com/elasticache/) Redis Cluster Terraform module to provision an [`ElastiCache`](https://aws.amazon.com/elasticache/) Redis Cluster
......
This diff is collapsed.
...@@ -18,6 +18,11 @@ output "endpoint" { ...@@ -18,6 +18,11 @@ output "endpoint" {
description = "Redis primary endpoint" description = "Redis primary endpoint"
} }
output "member_clusters" {
value = aws_elasticache_replication_group.default.*.member_clusters
description = "Redis cluster members"
}
output "host" { output "host" {
value = module.dns.hostname value = module.dns.hostname
description = "Redis hostname" description = "Redis hostname"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment