forked from hashicorp/terraform-provider-aws
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'upstream/stable-website'
- Loading branch information
Showing
1,748 changed files
with
138,441 additions
and
131,055 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
name: Examples Checks | ||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
paths: | ||
- examples/** | ||
|
||
env: | ||
AWS_DEFAULT_REGION: us-west-2 | ||
TF_PLUGIN_CACHE_DIR: ${{ github.workspace }}/.terraform.d/plugin-cache | ||
|
||
jobs: | ||
terraform: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
go_version: ["1.14"] | ||
terraform_version: ["0.11.14", "0.12.24"] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
- name: git fetch tags | ||
run: git fetch --depth=1 origin +refs/tags/*:refs/tags/* | ||
- uses: actions/cache@v1 | ||
with: | ||
path: ~/go/pkg/mod | ||
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} | ||
restore-keys: | | ||
${{ runner.os }}-go- | ||
- uses: actions/setup-go@v1 | ||
with: | ||
go-version: ${{ matrix.go_version }} | ||
- name: go build | ||
run: | | ||
GOOS=$(go env GOOS) | ||
GOARCH=$(go env GOARCH) | ||
# Substitute as latest release | ||
VERSION=$(git describe --abbrev=0 --match='v*.*.*' --tags || echo -n "v99.99.99") | ||
go build -o ${TF_PLUGIN_CACHE_DIR}/${GOOS}_${GOARCH}/terraform-provider-aws_${VERSION}_x4 . | ||
- uses: hashicorp/setup-terraform@v1 | ||
with: | ||
terraform_version: ${{ matrix.terraform_version }} | ||
- name: terraform | ||
run: | | ||
for DIR in $(find ./examples -type f -name '*.tf' -exec dirname {} \; | sort -u); do | ||
if [ ${{ matrix.terraform_version }} = 0.11.14 ]; then | ||
if [ $DIR = ./examples/eks-getting-started ]; then | ||
# Skip example already converted to Terraform 0.12 and later syntax | ||
continue | ||
elif [ $DIR = ./examples/two-tier ]; then | ||
# 0.11 validation requires file path to exist | ||
mkdir -p ~/.ssh | ||
touch ~/.ssh/terraform-provider-aws-example.pub | ||
fi | ||
fi | ||
pushd $DIR | ||
if [ -f terraform.template.tfvars ]; then | ||
cp terraform.template.tfvars terraform.tfvars | ||
fi | ||
echo; echo -e "\e[1;35m===> Initializing Example: $DIR <===\e[0m"; echo | ||
terraform init | ||
# Prefer Terraform 0.12 and later format checking to prevent conflicts | ||
if [ ${{ matrix.terraform_version }} != 0.11.14 ]; then | ||
echo; echo -e "\e[1;35m===> Format Checking Example: $DIR <===\e[0m"; echo | ||
terraform fmt -check | ||
fi | ||
echo; echo -e "\e[1;35m===> Validating Example: $DIR <===\e[0m"; echo | ||
terraform validate | ||
popd | ||
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,16 +7,8 @@ jobs: | |
- uses: actions/[email protected] | ||
- name: Apply Issue Triage Label | ||
uses: actions/[email protected] | ||
if: github.event.action == 'opened' | ||
if: github.event.action == 'opened' && !contains(fromJSON('["bflad", "breathingdust", "ewbankkit", "gdavison", "maryelizbeth"]'), github.actor) | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
args: label needs-triage | ||
|
||
- name: Add new issue into Triage Board | ||
uses: alex-page/[email protected] | ||
if: github.event.action == 'opened' | ||
with: | ||
project: AWS Provider Triage | ||
column: Needs Triage | ||
repo-token: ${{ secrets.GITHUB_ACTIONS_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
name: "Stale issues and pull requests" | ||
on: | ||
schedule: | ||
- cron: "40 17 * * *" | ||
|
||
jobs: | ||
stale: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/stale@v1 | ||
with: | ||
repo-token: ${{ secrets.GITHUB_TOKEN }} | ||
days-before-stale: 720 | ||
days-before-close: 30 | ||
exempt-issue-label: 'needs-triage' | ||
exempt-pr-label: 'needs-triage' | ||
operations-per-run: 100 | ||
stale-issue-label: 'stale' | ||
stale-issue-message: | | ||
Marking this issue as stale due to inactivity. This helps our maintainers find and focus on the active issues. If this issue receives no comments in the next 30 days it will automatically be closed. Maintainers can also remove the stale label. | ||
If this issue was automatically closed and you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thank you! | ||
stale-pr-label: 'stale' | ||
stale-pr-message: | | ||
Marking this pull request as stale due to inactivity. This helps our maintainers find and focus on the active pull requests. If this pull request receives no comments in the next 30 days it will automatically be closed. Maintainers can also remove the stale label. | ||
If this pull request was automatically closed and you feel this pull request should be reopened, we encourage creating a new pull request linking back to this one for added context. Thank you! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
name: Website Checks | ||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
paths: | ||
- website/docs/** | ||
|
||
jobs: | ||
markdown-link-check: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: gaurav-nelson/github-action-markdown-link-check@v1 | ||
with: | ||
use-quiet-mode: 'yes' | ||
use-verbose-mode: 'yes' | ||
config-file: '.markdownlinkcheck.json' | ||
folder-path: 'website/docs' | ||
file-extension: '.markdown' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,7 +25,7 @@ website/node_modules | |
*.test | ||
*.iml | ||
log.txt | ||
|
||
markdown-link-check*.txt | ||
website/vendor | ||
|
||
# Test exclusions | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.