Skip to content

[7.0.0-alpha]: upgrade upstream to 6.0.0-beta #5479

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 26 commits into from
May 14, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
2 changes: 1 addition & 1 deletion .ci-mgmt.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
provider: aws
lint: false
major-version: 6
major-version: 7
parallel: 1
timeout: 150
generate-nightly-test-workflow: true
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/prerequisites.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ jobs:
- uses: pulumi/provider-version-action@f96d032a2758fdda7939e5728eff6c0d980ae894 # v1.6.0
id: provider-version
with:
major-version: 6
major-version: 7
set-env: 'PROVIDER_VERSION'
- name: Cache examples generation
uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4
Expand Down
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
PACK := aws
ORG := pulumi
PROJECT := github.com/$(ORG)/pulumi-$(PACK)
PROVIDER_PATH := provider/v6
PROVIDER_PATH := provider/v7
VERSION_PATH := $(PROVIDER_PATH)/pkg/version.Version
CODEGEN := pulumi-tfgen-$(PACK)
PROVIDER := pulumi-resource-$(PACK)
Expand All @@ -17,7 +17,7 @@ PULUMI_MISSING_DOCS_ERROR := true

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

# Check version doesn't start with a "v" - this is a common mistake
ifeq ($(shell echo $(PROVIDER_VERSION) | cut -c1),v)
Expand Down
455 changes: 455 additions & 0 deletions docs/v7-upgrade.md

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions examples/bucket-default-tags-yaml/Pulumi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ resources:
aws-provider:
type: pulumi:providers:aws
res:
type: aws:s3:BucketV2
type: aws:s3:Bucket
options:
provider: ${aws-provider}
outputs:
actual: ${res.tags}
actual: ${res.tagsAll}
4 changes: 2 additions & 2 deletions examples/bucket-default-tags-yaml/step1/Pulumi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ resources:
tags:
foo: bar
res:
type: aws:s3:BucketV2
type: aws:s3:Bucket
options:
provider: ${aws-provider}
outputs:
actual: ${res.tags}
actual: ${res.tagsAll}
4 changes: 2 additions & 2 deletions examples/bucket-default-tags-yaml/step2/Pulumi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ resources:
tags:
foo: quux
res:
type: aws:s3:BucketV2
type: aws:s3:Bucket
options:
provider: ${aws-provider}
outputs:
actual: ${res.tags}
actual: ${res.tagsAll}
4 changes: 2 additions & 2 deletions examples/bucket-default-tags-yaml/step3/Pulumi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ resources:
tags:
foo: quux
res:
type: aws:s3:BucketV2
type: aws:s3:Bucket
properties:
tags:
fizz: buzz
options:
provider: ${aws-provider}
outputs:
actual: ${res.tags}
actual: ${res.tagsAll}
4 changes: 2 additions & 2 deletions examples/bucket-default-tags-yaml/step4/Pulumi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ resources:
tags:
foo: quux
res:
type: aws:s3:BucketV2
type: aws:s3:Bucket
properties:
tags:
fizz: buzz
foo: bar
options:
provider: ${aws-provider}
outputs:
actual: ${res.tags}
actual: ${res.tagsAll}
4 changes: 2 additions & 2 deletions examples/bucket-default-tags-yaml/step5/Pulumi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ resources:
tags:
foo: quux
res:
type: aws:s3:BucketV2
type: aws:s3:Bucket
options:
provider: ${aws-provider}
outputs:
actual: ${res.tags}
actual: ${res.tagsAll}
4 changes: 2 additions & 2 deletions examples/bucket-default-tags-yaml/step6/Pulumi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ resources:
foo: quux
thwomp: pow
res:
type: aws:s3:BucketV2
type: aws:s3:Bucket
options:
provider: ${aws-provider}
outputs:
actual: ${res.tags}
actual: ${res.tagsAll}
4 changes: 2 additions & 2 deletions examples/bucket-default-tags-yaml/step7/Pulumi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ resources:
tags:
thwomp: pow
res:
type: aws:s3:BucketV2
type: aws:s3:Bucket
options:
provider: ${aws-provider}
outputs:
actual: ${res.tags}
actual: ${res.tagsAll}
4 changes: 2 additions & 2 deletions examples/bucket-default-tags-yaml/step8/Pulumi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ resources:
aws-provider:
type: pulumi:providers:aws
res:
type: aws:s3:BucketV2
type: aws:s3:Bucket
options:
provider: ${aws-provider}
outputs:
actual: ${res.tags}
actual: ${res.tagsAll}
2 changes: 1 addition & 1 deletion examples/bucket-py/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@

from pulumi_aws import s3

web_bucket = s3.Bucket('s3-py-bucket')
web_bucket = s3.Bucket("s3-py-bucket")
2 changes: 1 addition & 1 deletion examples/bucket-secret-tags-yaml/Pulumi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ runtime: yaml
resources:

res:
type: aws:s3:BucketV2
type: aws:s3:Bucket
properties:
tags:
that:
Expand Down
98 changes: 98 additions & 0 deletions examples/bucket-sidecar-renames/Pulumi.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,98 @@
name: test-aws-bucket-migration
runtime: yaml
resources:
loggingBucket:
type: aws:s3:BucketV2
properties:
forceDestroy: true
exampleBucketOwnershipControls:
type: aws:s3:BucketOwnershipControls
properties:
bucket: ${loggingBucket.id}
rule:
objectOwnership: BucketOwnerPreferred
bucketAcl:
type: aws:s3:BucketAclV2
properties:
bucket: ${loggingBucket.id}
acl: log-delivery-write
options:
dependsOn:
- ${exampleBucketOwnershipControls}
bucketSse:
type: aws:s3:BucketServerSideEncryptionConfigurationV2
properties:
bucket: ${migrationBucket.bucket}
rules:
- applyServerSideEncryptionByDefault:
sseAlgorithm: "AES256"
bucketVersioning:
type: aws:s3:BucketVersioningV2
properties:
bucket: ${migrationBucket.bucket}
versioningConfiguration:
status: Enabled
bucketWebsiteConfig:
type: aws:s3:BucketWebsiteConfigurationV2
properties:
bucket: ${migrationBucket.bucket}
indexDocument:
suffix: index.html
errorDocument:
key: error.html
routingRules:
- condition:
keyPrefixEquals: docs/
redirect:
replaceKeyPrefixWith: documents/
bucketLifecycleConfig:
type: aws:s3:BucketLifecycleConfigurationV2
properties:
bucket: ${migrationBucket.bucket}
rules:
- id: noncurrent
status: Enabled
# different between v1 & v2
expiration:
days: 30
noncurrentVersionExpiration:
noncurrentDays: 30
- id: log
status: Enabled
filter:
and:
prefix: log/
tags:
rule: log
autoclean: 'true'
transitions:
- days: 30
storageClass: STANDARD_IA
bucketCorsConfig:
type: aws:s3:BucketCorsConfigurationV2
properties:
bucket: ${migrationBucket.bucket}
corsRules:
- allowedHeaders:
- '*'
allowedMethods:
- PUT
- POST
allowedOrigins:
- https://s3-website-test.mydomain.com
exposeHeaders:
- ETag
maxAgeSeconds: 3000

bucketLogging:
type: aws:s3:BucketLoggingV2
properties:
bucket: ${migrationBucket.bucket}
targetBucket: ${loggingBucket.bucket}
targetPrefix: /log

migrationBucket:
type: aws:s3:BucketV2
properties:
forceDestroy: true

98 changes: 98 additions & 0 deletions examples/bucket-sidecar-renames/step1/Pulumi.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,98 @@
name: test-aws-bucket-migration
runtime: yaml
resources:
loggingBucket:
type: aws:s3:Bucket
properties:
forceDestroy: true
exampleBucketOwnershipControls:
type: aws:s3:BucketOwnershipControls
properties:
bucket: ${loggingBucket.id}
rule:
objectOwnership: BucketOwnerPreferred
bucketAcl:
type: aws:s3:BucketAcl
properties:
bucket: ${loggingBucket.id}
acl: log-delivery-write
options:
dependsOn:
- ${exampleBucketOwnershipControls}
bucketSse:
type: aws:s3:BucketServerSideEncryptionConfiguration
properties:
bucket: ${migrationBucket.bucket}
rules:
- applyServerSideEncryptionByDefault:
sseAlgorithm: "AES256"
bucketVersioning:
type: aws:s3:BucketVersioning
properties:
bucket: ${migrationBucket.bucket}
versioningConfiguration:
status: Enabled
bucketWebsiteConfig:
type: aws:s3:BucketWebsiteConfiguration
properties:
bucket: ${migrationBucket.bucket}
indexDocument:
suffix: index.html
errorDocument:
key: error.html
routingRules:
- condition:
keyPrefixEquals: docs/
redirect:
replaceKeyPrefixWith: documents/
bucketLifecycleConfig:
type: aws:s3:BucketLifecycleConfiguration
properties:
bucket: ${migrationBucket.bucket}
rules:
- id: noncurrent
status: Enabled
# different between v1 & v2
expiration:
days: 30
noncurrentVersionExpiration:
noncurrentDays: 30
- id: log
status: Enabled
filter:
and:
prefix: log/
tags:
rule: log
autoclean: 'true'
transitions:
- days: 30
storageClass: STANDARD_IA
bucketCorsConfig:
type: aws:s3:BucketCorsConfiguration
properties:
bucket: ${migrationBucket.bucket}
corsRules:
- allowedHeaders:
- '*'
allowedMethods:
- PUT
- POST
allowedOrigins:
- https://s3-website-test.mydomain.com
exposeHeaders:
- ETag
maxAgeSeconds: 3000

bucketLogging:
type: aws:s3:BucketLogging
properties:
bucket: ${migrationBucket.bucket}
targetBucket: ${loggingBucket.bucket}
targetPrefix: /log

migrationBucket:
type: aws:s3:Bucket
properties:
forceDestroy: true

Loading
Loading