-
Notifications
You must be signed in to change notification settings - Fork 9.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into aws_elasticache_replication_group_attribut…
…es_reader_endpoint
- Loading branch information
Showing
8,291 changed files
with
467,328 additions
and
2,465,669 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# Needed for testing our workflows | ||
-P ubuntu-latest=nektos/act-environments-ubuntu:18.04 |
Validating CODEOWNERS rules …
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 |
---|---|---|
@@ -1,2 +1,42 @@ | ||
# Default owner for all pull requests | ||
* @terraform-providers/aws-provider | ||
* @hashicorp/terraform-aws | ||
|
||
# Service specific owners | ||
/aws/*apigatewayv2* @ewbankkit @hashicorp/terraform-aws | ||
/website/**/apigatewayv2* @ewbankkit @hashicorp/terraform-aws | ||
|
||
/aws/*appmesh* @ewbankkit @hashicorp/terraform-aws | ||
/website/**/appmesh* @ewbankkit @hashicorp/terraform-aws | ||
|
||
/aws/*backup* @ewbankkit @hashicorp/terraform-aws | ||
/website/**/backup* @ewbankkit @hashicorp/terraform-aws | ||
|
||
/aws/*_aws_codeartifact_*.go @DrFaust92 @hashicorp/terraform-aws | ||
/website/**/codeartifact* @DrFaust92 @hashicorp/terraform-aws | ||
|
||
/aws/*_aws_fsx_*.go @DrFaust92 @hashicorp/terraform-aws | ||
/website/**/fsx* @DrFaust92 @hashicorp/terraform-aws | ||
|
||
/aws/*globalaccelerator* @ewbankkit @hashicorp/terraform-aws | ||
/website/**/globalaccelerator* @ewbankkit @hashicorp/terraform-aws | ||
|
||
/aws/*_aws_glue_*.go @DrFaust92 @hashicorp/terraform-aws | ||
/website/**/glue* @DrFaust92 @hashicorp/terraform-aws | ||
|
||
/aws/*kinesis_analytics* @ewbankkit @hashicorp/terraform-aws | ||
/website/**/kinesis_analytics* @ewbankkit @hashicorp/terraform-aws | ||
|
||
/aws/*kinesisanalyticsv2* @ewbankkit @hashicorp/terraform-aws | ||
/website/**/kinesisanalyticsv2* @ewbankkit @hashicorp/terraform-aws | ||
|
||
/aws/*route53_resolver* @ewbankkit @hashicorp/terraform-aws | ||
/website/**/route53_resolver* @ewbankkit @hashicorp/terraform-aws | ||
|
||
/aws/*_aws_storagegateway_*.go @DrFaust92 @hashicorp/terraform-aws | ||
/website/**/storagegateway* @DrFaust92 @hashicorp/terraform-aws | ||
|
||
/aws/*_aws_sagemaker_*.go @DrFaust92 @hashicorp/terraform-aws | ||
/website/**/sagemaker* @DrFaust92 @hashicorp/terraform-aws | ||
|
||
/aws/*_aws_workspaces_*.go @Tensho @hashicorp/terraform-aws | ||
/website/**/workspaces* @Tensho @hashicorp/terraform-aws |
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
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,31 @@ | ||
version: 2 | ||
updates: | ||
- package-ecosystem: "github-actions" | ||
directory: "/" | ||
schedule: | ||
interval: "daily" | ||
- package-ecosystem: "gomod" | ||
directory: "/" | ||
ignore: | ||
- dependency-name: "golang.org/x/tools" | ||
- dependency-name: "google.golang.org/grpc" | ||
schedule: | ||
interval: "daily" | ||
- package-ecosystem: "gomod" | ||
directory: "/awsproviderlint" | ||
ignore: | ||
- dependency-name: "golang.org/x/tools" | ||
- dependency-name: "google.golang.org/grpc" | ||
schedule: | ||
interval: "daily" | ||
- package-ecosystem: "gomod" | ||
directory: "/tools" | ||
ignore: | ||
- dependency-name: "golang.org/x/tools" | ||
- dependency-name: "google.golang.org/grpc" | ||
schedule: | ||
interval: "daily" | ||
- package-ecosystem: "terraform" | ||
directory: "/infrastructure/repository" | ||
schedule: | ||
interval: "daily" |
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,4 @@ | ||
needs-triage: | ||
- '**' | ||
- '.*' | ||
- '.*/**' |
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,20 @@ | ||
# GitHub Workflows | ||
|
||
## Using the `setup-terraform` action | ||
|
||
By default, the [`setup-terraform` action](https://github.com/hashicorp/setup-terraform) adds a wrapper for the `terraform` command that allows passing results to subsequent steps. This will prevent using the output of a `terraform` command as the input to another command in the same step. | ||
|
||
The wrapper can be turned off by using | ||
|
||
```yaml | ||
steps: | ||
- uses: hashicorp/setup-terraform@v1 | ||
with: | ||
terraform_wrapper: false | ||
``` | ||
## Testing workflows locally | ||
The tool [`act`](https://github.com/nektos/act) can be used to test GitHub workflows locally. The default container [intentionally does not have feature parity](https://github.com/nektos/act#default-runners-are-intentionally-incomplete) with the containers used in GitHub due to the size of a full container. | ||
|
||
The file `./actrc` configures `act` to use a fully-featured container. |
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,79 @@ | ||
name: Acceptance Test Linting | ||
on: | ||
push: | ||
branches: | ||
- master | ||
- "release/**" | ||
pull_request: | ||
paths: | ||
- .github/workflows/acctest-terraform-lint.yml | ||
- .go-version | ||
- aws/*_test.go | ||
- scripts/validate-terraform.sh | ||
- tools/go.mod | ||
|
||
env: | ||
GO111MODULE: on | ||
|
||
jobs: | ||
terrafmt: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
# See also: https://github.com/actions/setup-go/pull/62 | ||
- run: echo "GO_VERSION=$(cat .go-version)" >> $GITHUB_ENV | ||
- uses: actions/setup-go@v2 | ||
with: | ||
go-version: ${{ env.GO_VERSION }} | ||
- uses: actions/cache@v2 | ||
continue-on-error: true | ||
timeout-minutes: 2 | ||
with: | ||
path: ~/go/pkg/mod | ||
key: ${{ runner.os }}-go-pkg-mod-${{ hashFiles('go.sum') }} | ||
- run: cd tools && go install github.com/katbyte/terrafmt | ||
# - run: terrafmt diff ./aws --check --pattern '*_test.go' --fmtcompat | ||
- run: | | ||
find ./aws -type f -name '*_test.go' \ | ||
| sort -u \ | ||
| grep -v resource_aws_apigatewayv2_domain_name_test.go \ | ||
| grep -v resource_aws_ecs_capacity_provider_test.go \ | ||
| grep -v resource_aws_efs_file_system_test.go \ | ||
| grep -v resource_aws_kinesis_stream_test.go \ | ||
| grep -v resource_aws_kms_grant_test.go \ | ||
| grep -v resource_aws_quicksight_user_test.go \ | ||
| grep -v resource_aws_s3_bucket_object_test.go \ | ||
| grep -v resource_aws_sns_platform_application_test.go \ | ||
| xargs -I {} terrafmt diff --check --fmtcompat {} | ||
validate-terraform: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
# See also: https://github.com/actions/setup-go/pull/62 | ||
- run: echo "GO_VERSION=$(cat .go-version)" >> $GITHUB_ENV | ||
- uses: actions/setup-go@v2 | ||
with: | ||
go-version: ${{ steps.go-version.outputs.content }} | ||
- uses: actions/cache@v2 | ||
continue-on-error: true | ||
timeout-minutes: 2 | ||
with: | ||
path: ~/go/pkg/mod | ||
key: ${{ runner.os }}-go-pkg-mod-${{ hashFiles('go.sum') }} | ||
- run: cd tools && go install github.com/katbyte/terrafmt | ||
- run: cd tools && go install github.com/terraform-linters/tflint | ||
- run: | | ||
find ./aws -type f -name '*_test.go' \ | ||
| sort -u \ | ||
| grep -v resource_aws_apigatewayv2_domain_name_test.go \ | ||
| grep -v resource_aws_ecs_capacity_provider_test.go \ | ||
| grep -v resource_aws_efs_file_system_test.go \ | ||
| grep -v resource_aws_elasticache_cluster_test.go \ | ||
| grep -v resource_aws_kinesis_stream_test.go \ | ||
| grep -v resource_aws_kms_grant_test.go \ | ||
| grep -v resource_aws_lambda_permission_test.go \ | ||
| grep -v resource_aws_quicksight_user_test.go \ | ||
| grep -v resource_aws_s3_bucket_object_test.go \ | ||
| grep -v resource_aws_sns_platform_application_test.go \ | ||
| ./scripts/validate-terraform.sh |
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: Dependency Checks | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
- 'release/**' | ||
pull_request_target: | ||
|
||
jobs: | ||
changes: | ||
if: github.event_name == 'pull_request_target' && !contains(fromJSON('["anGie44", "bflad", "breathingdust", "dependabot[bot]", "DrFaust92", "ewbankkit", "gdavison", "maryelizbeth", "YakDriver"]'), github.actor) | ||
name: Filter Changes | ||
runs-on: ubuntu-latest | ||
outputs: | ||
changed: ${{ steps.filter.outputs.changed }} | ||
steps: | ||
- uses: dorny/paths-filter@v2 | ||
id: filter | ||
with: | ||
filters: | | ||
changed: | ||
- awsproviderlint/** | ||
- go.mod | ||
- go.sum | ||
comment: | ||
needs: changes | ||
if: ${{ needs.changes.outputs.changed == 'true' }} | ||
name: Comment | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Find Existing PR Comment | ||
id: prc | ||
uses: peter-evans/find-comment@v1 | ||
with: | ||
issue-number: ${{ github.event.pull_request.number }} | ||
comment-author: "github-actions[bot]" | ||
body-includes: "Please note that typically Go dependency changes" | ||
- run: echo ${{ steps.prc.outputs.comment-id }} | ||
- name: PR Comment | ||
if: ${{ steps.prc.outputs.comment-id == '' }} | ||
uses: peter-evans/create-or-update-comment@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
issue-number: ${{ github.event.pull_request.number }} | ||
body: |- | ||
Thank you for your contribution! :rocket: | ||
Please note that typically Go dependency changes are handled in this repository by dependabot or the maintainers. This is to prevent pull request merge conflicts and further delay reviews of contributions. Remove any changes to the `go.mod` or `go.sum` files and commit them into this pull request. | ||
Additional details: | ||
* Check [open pull requests with the `dependencies` label](https://github.com/hashicorp/terraform-provider-aws/pulls?q=is%3Aopen+is%3Apr+label%3Adependencies) to view other dependency updates. | ||
* If this pull request includes an update the AWS Go SDK (or any other dependency) version, only updates submitted via dependabot will be merged. This pull request will need to remove these changes and will need to be rebased after the existing dependency update via dependabot has been merged for this pull request to be reviewed. | ||
* If this pull request is for supporting a new AWS service: | ||
* Ensure the new AWS service changes are following the [Contributing Guide section on new services](https://github.com/hashicorp/terraform-provider-aws/blob/master/docs/contributing/contribution-checklists.md#new-service), in particular that the dependency addition and initial provider support are in a separate pull request from other changes (e.g. new resources). Contributions not following this item will not be reviewed until the changes are split. | ||
* If this pull request is already a separate pull request from the above item, you can ignore this message. | ||
go_mod: | ||
name: go mod | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
# See also: https://github.com/actions/setup-go/pull/62 | ||
- run: echo "GO_VERSION=$(cat .go-version)" >> $GITHUB_ENV | ||
- uses: actions/setup-go@v2 | ||
with: | ||
go-version: ${{ env.GO_VERSION }} | ||
- name: go mod | ||
run: | | ||
echo "==> Checking source code with go mod tidy..." | ||
go mod tidy | ||
git diff --exit-code -- go.mod go.sum || \ | ||
(echo; echo "Unexpected difference in go.mod/go.sum files. Run 'go mod tidy' command or revert any go.mod/go.sum changes and commit."; exit 1) |
Oops, something went wrong.