Skip to content

Commit 29df946

Browse files
committed
Merge branch 'master' into b-fix-aws_elasticache_replication_group-arn
2 parents 820f72d + aa957b7 commit 29df946

6,622 files changed

Lines changed: 239135 additions & 2456577 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/CODEOWNERS

Lines changed: 29 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,42 @@
11
# Default owner for all pull requests
2-
* @terraform-providers/aws-provider
2+
* @hashicorp/terraform-aws
33

44
# Service specific owners
5-
/aws/*apigatewayv2* @ewbankkit @terraform-providers/aws-provider
6-
/website/**/apigatewayv2* @ewbankkit @terraform-providers/aws-provider
5+
/aws/*apigatewayv2* @ewbankkit @hashicorp/terraform-aws
6+
/website/**/apigatewayv2* @ewbankkit @hashicorp/terraform-aws
77

8-
/aws/*appmesh* @ewbankkit @terraform-providers/aws-provider
9-
/website/**/appmesh* @ewbankkit @terraform-providers/aws-provider
8+
/aws/*appmesh* @ewbankkit @hashicorp/terraform-aws
9+
/website/**/appmesh* @ewbankkit @hashicorp/terraform-aws
1010

11-
/aws/*backup* @ewbankkit @terraform-providers/aws-provider
12-
/website/**/backup* @ewbankkit @terraform-providers/aws-provider
11+
/aws/*backup* @ewbankkit @hashicorp/terraform-aws
12+
/website/**/backup* @ewbankkit @hashicorp/terraform-aws
1313

14-
/aws/*_aws_codeartifact_*.go @DrFaust92 @terraform-providers/aws-provider
15-
/website/**/codeartifact* @DrFaust92 @terraform-providers/aws-provider
14+
/aws/*_aws_codeartifact_*.go @DrFaust92 @hashicorp/terraform-aws
15+
/website/**/codeartifact* @DrFaust92 @hashicorp/terraform-aws
1616

17-
/aws/*_aws_fsx_*.go @DrFaust92 @terraform-providers/aws-provider
18-
/website/**/fsx* @DrFaust92 @terraform-providers/aws-provider
17+
/aws/*_aws_fsx_*.go @DrFaust92 @hashicorp/terraform-aws
18+
/website/**/fsx* @DrFaust92 @hashicorp/terraform-aws
1919

20-
/aws/*globalaccelerator* @ewbankkit @terraform-providers/aws-provider
21-
/website/**/globalaccelerator* @ewbankkit @terraform-providers/aws-provider
20+
/aws/*globalaccelerator* @ewbankkit @hashicorp/terraform-aws
21+
/website/**/globalaccelerator* @ewbankkit @hashicorp/terraform-aws
2222

23-
/aws/*_aws_glue_*.go @DrFaust92 @terraform-providers/aws-provider
24-
/website/**/glue* @DrFaust92 @terraform-providers/aws-provider
23+
/aws/*_aws_glue_*.go @DrFaust92 @hashicorp/terraform-aws
24+
/website/**/glue* @DrFaust92 @hashicorp/terraform-aws
2525

26-
/aws/*route53_resolver* @ewbankkit @terraform-providers/aws-provider
27-
/website/**/route53_resolver* @ewbankkit @terraform-providers/aws-provider
26+
/aws/*kinesis_analytics* @ewbankkit @hashicorp/terraform-aws
27+
/website/**/kinesis_analytics* @ewbankkit @hashicorp/terraform-aws
2828

29-
/aws/*_aws_storagegateway_*.go @DrFaust92 @terraform-providers/aws-provider
30-
/website/**/storagegateway* @DrFaust92 @terraform-providers/aws-provider
29+
/aws/*kinesisanalyticsv2* @ewbankkit @hashicorp/terraform-aws
30+
/website/**/kinesisanalyticsv2* @ewbankkit @hashicorp/terraform-aws
3131

32-
/aws/*_aws_sagemaker_*.go @DrFaust92 @terraform-providers/aws-provider
33-
/website/**/sagemaker* @DrFaust92 @terraform-providers/aws-provider
32+
/aws/*route53_resolver* @ewbankkit @hashicorp/terraform-aws
33+
/website/**/route53_resolver* @ewbankkit @hashicorp/terraform-aws
3434

35-
/aws/*_aws_workspaces_*.go @Tensho @terraform-providers/aws-provider
36-
/website/**/workspaces* @Tensho @terraform-providers/aws-provider
35+
/aws/*_aws_storagegateway_*.go @DrFaust92 @hashicorp/terraform-aws
36+
/website/**/storagegateway* @DrFaust92 @hashicorp/terraform-aws
37+
38+
/aws/*_aws_sagemaker_*.go @DrFaust92 @hashicorp/terraform-aws
39+
/website/**/sagemaker* @DrFaust92 @hashicorp/terraform-aws
40+
41+
/aws/*_aws_workspaces_*.go @Tensho @hashicorp/terraform-aws
42+
/website/**/workspaces* @Tensho @hashicorp/terraform-aws

.github/ISSUE_TEMPLATE/Bug_Report.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ If you are running into one of these scenarios, we recommend opening an issue in
4040

4141
<!--- Information about code formatting: https://help.github.com/articles/basic-writing-and-formatting-syntax/#quoting-code --->
4242

43+
Please include all Terraform configurations required to reproduce the bug. Bug reports without a functional reproduction may be closed without investigation.
44+
4345
```hcl
4446
# Copy-paste your Terraform configurations here - for large Terraform configs,
4547
# please use a service like Dropbox and share a link to the ZIP file. For

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
blank_issues_enabled: false
22
contact_links:
33
- name: Terraform AWS Provider Roadmap
4-
url: https://github.com/terraform-providers/terraform-provider-aws/blob/master/ROADMAP.md
4+
url: https://github.com/hashicorp/terraform-provider-aws/blob/master/ROADMAP.md
55
about: View the Roadmap for the upcoming work planned on the AWS provider.
66
- name: Terraform AWS Provider Questions
77
url: https://discuss.hashicorp.com/c/terraform-providers/tf-aws

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<!--- See what makes a good Pull Request at : https://github.com/terraform-providers/terraform-provider-aws/blob/master/docs/CONTRIBUTING.md --->
1+
<!--- See what makes a good Pull Request at : https://github.com/hashicorp/terraform-provider-aws/blob/master/docs/CONTRIBUTING.md --->
22

33
<!--- Please keep this note for the community --->
44

@@ -12,7 +12,7 @@
1212
<!--- If your PR fully resolves and should automatically close the linked issue, use Closes. Otherwise, use Relates --->
1313
Relates OR Closes #0000
1414

15-
Release note for [CHANGELOG](https://github.com/terraform-providers/terraform-provider-aws/blob/master/CHANGELOG.md):
15+
Release note for [CHANGELOG](https://github.com/hashicorp/terraform-provider-aws/blob/master/CHANGELOG.md):
1616
<!--
1717
If change is not user facing, just write "NONE" in the release-note block below.
1818
-->

.github/dependabot.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,28 @@ updates:
44
directory: "/"
55
schedule:
66
interval: "daily"
7+
- package-ecosystem: "gomod"
8+
directory: "/"
9+
ignore:
10+
- dependency-name: "golang.org/x/tools"
11+
- dependency-name: "google.golang.org/grpc"
12+
schedule:
13+
interval: "daily"
14+
- package-ecosystem: "gomod"
15+
directory: "/awsproviderlint"
16+
ignore:
17+
- dependency-name: "golang.org/x/tools"
18+
- dependency-name: "google.golang.org/grpc"
19+
schedule:
20+
interval: "daily"
21+
- package-ecosystem: "gomod"
22+
directory: "/tools"
23+
ignore:
24+
- dependency-name: "golang.org/x/tools"
25+
- dependency-name: "google.golang.org/grpc"
26+
schedule:
27+
interval: "daily"
28+
- package-ecosystem: "terraform"
29+
directory: "/infrastructure/repository"
30+
schedule:
31+
interval: "daily"

.github/workflows/acctest-terraform-lint.yml

Lines changed: 28 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -3,24 +3,25 @@ on:
33
push:
44
branches:
55
- master
6-
- 'release/**'
6+
- "release/**"
77
pull_request:
88
paths:
99
- .github/workflows/acctest-terraform-lint.yml
10-
- aws/core_acceptance_test.go
11-
- aws/data_source_aws_*_test.go
12-
- aws/resource_aws_[a-g]*_test.go
10+
- .go-version
11+
- aws/*_test.go
12+
- scripts/validate-terraform.sh
13+
- tools/go.mod
1314

1415
env:
15-
GO_VERSION: "1.14"
1616
GO111MODULE: on
17-
TFLINT_VERSION: "v0.20.0" # Not yet available
1817

1918
jobs:
2019
terrafmt:
2120
runs-on: ubuntu-latest
2221
steps:
2322
- uses: actions/checkout@v2
23+
# See also: https://github.com/actions/setup-go/pull/62
24+
- run: echo "GO_VERSION=$(cat .go-version)" >> $GITHUB_ENV
2425
- uses: actions/setup-go@v2
2526
with:
2627
go-version: ${{ env.GO_VERSION }}
@@ -30,72 +31,49 @@ jobs:
3031
with:
3132
path: ~/go/pkg/mod
3233
key: ${{ runner.os }}-go-pkg-mod-${{ hashFiles('go.sum') }}
34+
- run: cd tools && go install github.com/katbyte/terrafmt
35+
# - run: terrafmt diff ./aws --check --pattern '*_test.go' --fmtcompat
3336
- run: |
34-
# go get github.com/katbyte/terrafmt
35-
git clone --branch tracking-main --single-branch https://github.com/gdavison/terrafmt terrafmt
36-
cd terrafmt
37-
go install
38-
# - run: terrafmt diff ./aws --check --pattern '*_test.go' --quiet --fmtcompat
39-
- run: |
40-
find ./aws -type f \( \
41-
-name 'core_acceptance_test.go' \
42-
-o -name 'data_source_aws_*_test.go' \
43-
-o -name 'resource_aws_a*_test.go' \
44-
-o -name 'resource_aws_b*_test.go' \
45-
-o -name 'resource_aws_c*_test.go' \
46-
-o -name 'resource_aws_d*_test.go' \
47-
-o -name 'resource_aws_e*_test.go' \
48-
-o -name 'resource_aws_f*_test.go' \
49-
-o -name 'resource_aws_g*_test.go' \
50-
\) \
37+
find ./aws -type f -name '*_test.go' \
5138
| sort -u \
5239
| grep -v resource_aws_apigatewayv2_domain_name_test.go \
53-
| grep -v resource_aws_dynamodb_table_test.go \
5440
| grep -v resource_aws_ecs_capacity_provider_test.go \
5541
| grep -v resource_aws_efs_file_system_test.go \
56-
| xargs -I {} terrafmt diff --check --quiet --fmtcompat {}
42+
| grep -v resource_aws_kinesis_stream_test.go \
43+
| grep -v resource_aws_kms_grant_test.go \
44+
| grep -v resource_aws_quicksight_user_test.go \
45+
| grep -v resource_aws_s3_bucket_object_test.go \
46+
| grep -v resource_aws_sns_platform_application_test.go \
47+
| xargs -I {} terrafmt diff --check --fmtcompat {}
5748
5849
validate-terraform:
5950
runs-on: ubuntu-latest
6051
steps:
6152
- uses: actions/checkout@v2
53+
# See also: https://github.com/actions/setup-go/pull/62
54+
- run: echo "GO_VERSION=$(cat .go-version)" >> $GITHUB_ENV
6255
- uses: actions/setup-go@v2
6356
with:
64-
go-version: ${{ env.GO_VERSION }}
57+
go-version: ${{ steps.go-version.outputs.content }}
6558
- uses: actions/cache@v2
6659
continue-on-error: true
6760
timeout-minutes: 2
6861
with:
6962
path: ~/go/pkg/mod
7063
key: ${{ runner.os }}-go-pkg-mod-${{ hashFiles('go.sum') }}
64+
- run: cd tools && go install github.com/katbyte/terrafmt
65+
- run: cd tools && go install github.com/terraform-linters/tflint
7166
- run: |
72-
# go get github.com/katbyte/terrafmt
73-
git clone --branch tracking-main --single-branch https://github.com/gdavison/terrafmt terrafmt
74-
cd terrafmt
75-
go install
76-
# - run: curl -s https://raw.githubusercontent.com/terraform-linters/tflint/master/install_linux.sh | sh
77-
- run: |
78-
git clone --no-checkout https://github.com/terraform-linters/tflint tflint
79-
cd tflint
80-
git checkout --recurse-submodules 5a002e926848899d4bfbb006f95c39285a5e9afa
81-
go install
82-
- run: |
83-
find ./aws -type f \( \
84-
-name 'core_acceptance_test.go' \
85-
-o -name 'data_source_aws_*_test.go' \
86-
-o -name 'resource_aws_a*_test.go' \
87-
-o -name 'resource_aws_b*_test.go' \
88-
-o -name 'resource_aws_c*_test.go' \
89-
-o -name 'resource_aws_d*_test.go' \
90-
-o -name 'resource_aws_e*_test.go' \
91-
-o -name 'resource_aws_f*_test.go' \
92-
-o -name 'resource_aws_g*_test.go' \
93-
\) \
67+
find ./aws -type f -name '*_test.go' \
9468
| sort -u \
9569
| grep -v resource_aws_apigatewayv2_domain_name_test.go \
96-
| grep -v resource_aws_dynamodb_table_test.go \
9770
| grep -v resource_aws_ecs_capacity_provider_test.go \
9871
| grep -v resource_aws_efs_file_system_test.go \
9972
| grep -v resource_aws_elasticache_cluster_test.go \
73+
| grep -v resource_aws_kinesis_stream_test.go \
74+
| grep -v resource_aws_kms_grant_test.go \
75+
| grep -v resource_aws_lambda_permission_test.go \
76+
| grep -v resource_aws_quicksight_user_test.go \
77+
| grep -v resource_aws_s3_bucket_object_test.go \
78+
| grep -v resource_aws_sns_platform_application_test.go \
10079
| ./scripts/validate-terraform.sh
101-

.github/workflows/changelog.yml

Lines changed: 33 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,35 +6,60 @@ on:
66
- 'release/**'
77
pull_request:
88
paths:
9+
- .go-version
910
- CHANGELOG.md
11+
pull_request_target:
1012

1113
env:
12-
GO_VERSION: "1.14"
1314
GO111MODULE: on
1415

1516
jobs:
17+
changes:
18+
if: github.event_name == 'pull_request_target' && !contains(fromJSON('["anGie44", "bflad", "breathingdust", "gdavison", "maryelizbeth", "YakDriver"]'), github.actor)
19+
name: Filter Changes
20+
runs-on: ubuntu-latest
21+
outputs:
22+
changed: ${{ steps.filter.outputs.changed }}
23+
steps:
24+
- uses: dorny/paths-filter@v2
25+
id: filter
26+
with:
27+
filters: |
28+
changed:
29+
- CHANGELOG.md
1630
comment:
17-
if: github.event_name == 'pull_request' && !contains(fromJSON('["bflad", "breathingdust", "ewbankkit", "gdavison", "maryelizbeth"]'), github.actor)
31+
needs: changes
32+
if: ${{ needs.changes.outputs.changed == 'true' }}
1833
name: Comment
1934
runs-on: ubuntu-latest
2035
steps:
36+
- name: Find Existing PR Comment
37+
id: prc
38+
uses: peter-evans/find-comment@v1
39+
with:
40+
issue-number: ${{ github.event.pull_request.number }}
41+
comment-author: "github-actions[bot]"
42+
body-includes: "Please note that the `CHANGELOG.md` file contents are handled by the maintainers during merge"
43+
- run: echo ${{ steps.prc.outputs.comment-id }}
2144
- name: PR Comment
22-
uses: unsplash/comment-on-pr@v1.2.0
45+
if: ${{ steps.prc.outputs.comment-id == '' }}
46+
uses: peter-evans/create-or-update-comment@v1
2347
env:
2448
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2549
with:
26-
msg: |-
50+
issue-number: ${{ github.event.pull_request.number }}
51+
body: |-
2752
Thank you for your contribution! :rocket:
2853
29-
Please note that the `CHANGELOG.md` file contents are handled by the maintainers during merge. This is to prevent pull request merge conflicts, especially for contributions which may not be merged immediately. Please see the [Contributing Guide](https://github.com/terraform-providers/terraform-provider-aws/blob/master/.github/CONTRIBUTING.md) for additional pull request review items.
54+
Please note that the `CHANGELOG.md` file contents are handled by the maintainers during merge. This is to prevent pull request merge conflicts, especially for contributions which may not be merged immediately. Please see the [Contributing Guide](https://github.com/hashicorp/terraform-provider-aws/blob/master/docs/CONTRIBUTING.md) for additional pull request review items.
3055
3156
Remove any changes to the `CHANGELOG.md` file and commit them in this pull request to prevent delays with reviewing and potentially merging this pull request.
32-
- name: Fail the check
33-
run: exit 1
3457
misspell:
3558
runs-on: ubuntu-latest
3659
steps:
3760
- uses: actions/checkout@v2
61+
# See also: https://github.com/actions/setup-go/pull/62
62+
- run: echo "GO_VERSION=$(cat .go-version)" >> $GITHUB_ENV
3863
- uses: actions/setup-go@v2
3964
with:
4065
go-version: ${{ env.GO_VERSION }}
@@ -44,5 +69,5 @@ jobs:
4469
with:
4570
path: ~/go/pkg/mod
4671
key: ${{ runner.os }}-go-pkg-mod-${{ hashFiles('go.sum') }}
47-
- run: go install github.com/client9/misspell/cmd/misspell
72+
- run: cd tools && go install github.com/client9/misspell/cmd/misspell
4873
- run: misspell -error -source text CHANGELOG.md

.github/workflows/dependencies.yml

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,9 @@ on:
77
- 'release/**'
88
pull_request_target:
99

10-
env:
11-
GO_VERSION: "1.14"
12-
1310
jobs:
1411
changes:
15-
if: github.event_name == 'pull_request_target' && !contains(fromJSON('["anGie44", "bflad", "breathingdust", "DrFaust92", "ewbankkit", "gdavison", "maryelizbeth", "YakDriver", "renovate[bot]"]'), github.actor)
12+
if: github.event_name == 'pull_request_target' && !contains(fromJSON('["anGie44", "bflad", "breathingdust", "dependabot[bot]", "DrFaust92", "ewbankkit", "gdavison", "maryelizbeth", "YakDriver"]'), github.actor)
1613
name: Filter Changes
1714
runs-on: ubuntu-latest
1815
outputs:
@@ -26,7 +23,6 @@ jobs:
2623
- awsproviderlint/**
2724
- go.mod
2825
- go.sum
29-
- vendor/**
3026
comment:
3127
needs: changes
3228
if: ${{ needs.changes.outputs.changed == 'true' }}
@@ -51,20 +47,22 @@ jobs:
5147
body: |-
5248
Thank you for your contribution! :rocket:
5349
54-
Please note that typically Go dependency changes are handled in this repository by Renovate Bot or the maintainers. This is to prevent pull request merge conflicts and further delay reviews of contributions. Remove any changes to the `go.mod`, `go.sum`, and `vendor/` files and commit them into this pull request.
50+
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.
5551
5652
Additional details:
5753
58-
* Check [open pull requests with the `dependencies` label](https://github.com/terraform-providers/terraform-provider-aws/pulls?q=is%3Aopen+is%3Apr+label%3Adependencies) to view other dependency updates.
59-
* If this pull request includes an update the AWS Go SDK (or any other dependency) version, only updates submitted via Renovate Bot will be merged. This pull request will need to remove these changes and will need to be rebased after the existing dependency update via Renovate Bot has been merged for this pull request to be reviewed.
54+
* 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.
55+
* 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.
6056
* If this pull request is for supporting a new AWS service:
61-
* Ensure the new AWS service changes are following the [Contributing Guide section on new services](https://github.com/terraform-providers/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.
57+
* 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.
6258
* If this pull request is already a separate pull request from the above item, you can ignore this message.
6359
go_mod:
6460
name: go mod
6561
runs-on: ubuntu-latest
6662
steps:
6763
- uses: actions/checkout@v2
64+
# See also: https://github.com/actions/setup-go/pull/62
65+
- run: echo "GO_VERSION=$(cat .go-version)" >> $GITHUB_ENV
6866
- uses: actions/setup-go@v2
6967
with:
7068
go-version: ${{ env.GO_VERSION }}
@@ -74,7 +72,3 @@ jobs:
7472
go mod tidy
7573
git diff --exit-code -- go.mod go.sum || \
7674
(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)
77-
echo "==> Checking source code with go mod vendor..."
78-
go mod vendor
79-
git diff --compact-summary --exit-code -- vendor || \
80-
(echo; echo "Unexpected difference in vendor/ directory. Run 'go mod vendor' command or revert any go.mod/go.sum/vendor changes and commit."; exit 1)

0 commit comments

Comments
 (0)