Skip to content

Commit e1efaec

Browse files
authored
Upgrade terraform-provider-aws to v6 major version (#5665)
This upgrades upstream `terraform-provider-aws` to `v6.3.0` See individual commits for details. re #5488
2 parents e8d3875 + 7b487a5 commit e1efaec

File tree

16,845 files changed

+558833
-414928
lines changed

Some content is hidden

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

16,845 files changed

+558833
-414928
lines changed

.ci-mgmt.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
provider: aws
22
lint: false
3-
major-version: 6
3+
major-version: 7
44
parallel: 1
5+
shards: 8
56
timeout: 150
67
generate-nightly-test-workflow: true
78
providerVersion: github.com/hashicorp/terraform-provider-aws/version.ProviderVersion

.github/workflows/prerequisites.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ jobs:
6262
- uses: pulumi/provider-version-action@f96d032a2758fdda7939e5728eff6c0d980ae894 # v1.6.0
6363
id: provider-version
6464
with:
65-
major-version: 6
65+
major-version: 7
6666
set-env: 'PROVIDER_VERSION'
6767
- name: Cache examples generation
6868
uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4

.github/workflows/test.yml

Lines changed: 41 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -55,29 +55,41 @@ jobs:
5555
submodules: true
5656
persist-credentials: false
5757
- name: Checkout p/examples
58-
if: matrix.testTarget == 'pulumiExamples'
5958
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
6059
with:
6160
repository: pulumi/examples
6261
path: p-examples
6362
- name: Setup tools
6463
uses: ./.github/actions/setup-tools
65-
with:
66-
tools: pulumictl, pulumicli, ${{ matrix.language }}
6764
- name: Prepare local workspace
6865
run: make prepare_local_workspace
6966
- name: Download bin
7067
uses: ./.github/actions/download-provider
71-
- name: Download SDK
68+
- name: Download nodejs SDK
69+
uses: ./.github/actions/download-sdk
70+
with:
71+
language: nodejs
72+
- name: Download python SDK
73+
uses: ./.github/actions/download-sdk
74+
with:
75+
language: python
76+
- name: Download dotnet SDK
7277
uses: ./.github/actions/download-sdk
7378
with:
74-
language: ${{ matrix.language }}
79+
language: dotnet
80+
- name: Download go SDK
81+
uses: ./.github/actions/download-sdk
82+
with:
83+
language: go
84+
- name: Download java SDK
85+
uses: ./.github/actions/download-sdk
86+
with:
87+
language: java
7588
- name: Restore makefile progress
76-
run: make --touch provider schema build_${{ matrix.language }}
89+
run: make --touch provider schema build_sdks
7790
- name: Update path
7891
run: echo "${{ github.workspace }}/bin" >> "$GITHUB_PATH"
7992
- name: Install Python deps
80-
if: matrix.language == 'python'
8193
run: |-
8294
pip3 install virtualenv==20.0.23
8395
pip3 install pipenv
@@ -94,21 +106,29 @@ jobs:
94106
PULUMI_ACCESS_TOKEN: ${{ steps.generate_pulumi_token.outputs.pulumi-access-token }}
95107
with:
96108
environment: logins/pulumi-ci
97-
- name: Install dependencies
98-
run: make install_${{ matrix.language}}_sdk
109+
- name: Install prebuilt SDKs
110+
run: make install_sdks
111+
- name: Generate test shards
112+
run: |-
113+
cd examples
114+
go run github.com/pulumi/shard@861c9ce4aa851e98c19f8376892bf7e47238fa1b \
115+
--total ${{ matrix.total-shards }} \
116+
--index ${{ matrix.current-shard }} \
117+
--output env >> "$GITHUB_ENV"
99118
- name: Run tests
100-
if: matrix.testTarget == 'local'
101-
run: cd examples && go test -v -count=1 -cover -timeout 2h -tags=${{ matrix.language }} -skip TestPulumiExamples -parallel 4 .
102-
- name: Run pulumi/examples tests
103-
if: matrix.testTarget == 'pulumiExamples'
104-
run: cd examples && go test -v -count=1 -cover -timeout 2h -tags=${{ matrix.language }} -run TestPulumiExamples -parallel 4 .
119+
run: |
120+
make GOTESTARGS="-test.run ${SHARD_TESTS} ${SHARD_PATHS}" test
105121
strategy:
106122
fail-fast: false
107123
matrix:
108-
language:
109-
- nodejs
110-
- python
111-
- dotnet
112-
- go
113-
- java
114-
testTarget: [local]
124+
total-shards:
125+
- 8
126+
current-shard:
127+
- 0
128+
- 1
129+
- 2
130+
- 3
131+
- 4
132+
- 5
133+
- 6
134+
- 7

CONTRIBUTING.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,6 @@ git branch upstream-v5.60.0 && git checkout upstream-v5.60.0
6060
./scripts/upstream.sh checkout
6161
./scripts/upstream.sh rebase -o v5.60.0
6262
# in ./rebase finish the Git rebase and resolve conflicts
63-
./scripts/patch_computed_only.sh
64-
# if patch_computed_only edited anything in ./upstream, commit it
6563
(cd ./upstream && go build ./...) # verify everything builds
6664
# add commits as needed to make it build
6765
./scripts/upstream.sh check_in

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
PACK := aws
44
ORG := pulumi
55
PROJECT := github.com/$(ORG)/pulumi-$(PACK)
6-
PROVIDER_PATH := provider/v6
6+
PROVIDER_PATH := provider/v7
77
VERSION_PATH := $(PROVIDER_PATH)/pkg/version.Version
88
CODEGEN := pulumi-tfgen-$(PACK)
99
PROVIDER := pulumi-resource-$(PACK)
@@ -17,7 +17,7 @@ PULUMI_MISSING_DOCS_ERROR := true
1717

1818
# Override during CI using `make [TARGET] PROVIDER_VERSION=""` or by setting a PROVIDER_VERSION environment variable
1919
# Local & branch builds will just used this fixed default version unless specified
20-
PROVIDER_VERSION ?= 6.0.0-alpha.0+dev
20+
PROVIDER_VERSION ?= 7.0.0-alpha.0+dev
2121

2222
# Check version doesn't start with a "v" - this is a common mistake
2323
ifeq ($(shell echo $(PROVIDER_VERSION) | cut -c1),v)

0 commit comments

Comments
 (0)