Skip to content

Conversation

CamSoper
Copy link
Contributor

@CamSoper CamSoper commented Sep 3, 2025

Summary

  • Bump AWS provider from v6 to v7 across TypeScript examples
  • Replace deprecated BucketV2 and BucketWebsiteConfigurationV2 classes with Bucket and BucketWebsiteConfiguration
  • Add make pr_preview target for validating example changes in PRs

Changes

  • Provider upgrades: Updated @pulumi/aws from v6.x to v7.0.0 in package.json files
  • API migrations: Replaced V2 S3 classes with current equivalents across JavaScript, TypeScript, Python, Go, and C# examples
  • New tooling: Added PR preview validation script and Makefile target for testing changed examples

Fixes pulumi/docs#15749

🤖 Generated with Claude Code

- Updated instances of aws.s3.BucketV2 to aws.s3.Bucket across multiple files to align with the latest Pulumi AWS SDK.
- Adjusted related configurations and policies to ensure compatibility with the new bucket type.
- Removed deprecated dependencies from go.mod and go.sum files.
- Updated README files to reflect changes in resource types.
- Introduced a script for PR-mode preview testing of changed Pulumi examples.
@CamSoper CamSoper requested a review from corymhall September 3, 2025 21:28
@CamSoper CamSoper requested review from Copilot and removed request for corymhall September 3, 2025 21:33
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR upgrades AWS provider across TypeScript examples from v6 to v7 and replaces deprecated S3 classes with their current equivalents. The changes ensure compatibility with the latest AWS provider version and remove usage of deprecated V2 S3 resources.

Key changes:

  • Upgraded @pulumi/aws dependency from v6.x to v7.0.0 across multiple package.json files
  • Replaced deprecated BucketV2 with Bucket and BucketWebsiteConfigurationV2 with BucketWebsiteConfiguration across all language examples
  • Added new PR preview validation tooling with make pr_preview target for testing changed examples

Reviewed Changes

Copilot reviewed 63 out of 64 changed files in this pull request and generated 5 comments.

Show a summary per file
File Description
webserver-yaml/Pulumi.yaml Updated YAML config to use newer AMI patterns and correct S3 bucket type
testing-unit-ts/mocha/index.ts Added preview runtime guards for AMI lookups
testing-unit-ts/mocha/bucket_pair.ts Migrated BucketV2 to Bucket in component resource
testing-pac-ts/tests/package.json Upgraded AWS provider dependency to v7.0.0
testing-integration-py/resource_s3.py Replaced BucketV2 with Bucket in Python example
secrets-provider/vault/index.ts Added preview guards and migrated S3 bucket classes
secrets-provider/aws/index.ts Added preview guards and migrated S3 bucket classes
aws-ts-static-website/index.ts Added domain validation guards and migrated S3/Route53 resources
aws-ts-static-website/acl.ts Updated function signature to use new bucket types
aws-py-static-website/main.py Added domain validation and migrated S3 bucket classes
scripts/pr-preview-changed.sh New PR validation script for testing changed examples
Multiple S3 examples Migrated from BucketV2 to Bucket across TypeScript, Python, Go, F#, and C#
Makefile Added pr_preview target for PR validation
README.md Added documentation for PR preview validation

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@CamSoper CamSoper requested a review from corymhall September 3, 2025 22:19
Copy link
Member

@mjeffryes mjeffryes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These changes all look reasonable. (and kudos for adding the script to test just changes form your own branch!) Looks like there's some digital ocean tests failing, but that seems to be rot in the test environment for DO and completely unrelated to your changes.

@CamSoper
Copy link
Contributor Author

CamSoper commented Sep 6, 2025

@mjeffryes Do you have admin rights in this repo? Seems those DO tests are preventing me from merging. Someone with admin rights needs to override.

Should we consider taking those tests out of the workflow until we have a chance to figure out why they're failing?

@mjeffryes
Copy link
Member

I do have admin rights, but we don't get special privileges for merging. :)

I think the right thing to do is to make a separate PR to disable those tests for now so they aren't blocking changes.

@CamSoper CamSoper enabled auto-merge (squash) September 11, 2025 21:27
@CamSoper CamSoper merged commit 6946a84 into master Sep 11, 2025
41 checks passed
@CamSoper CamSoper deleted the CamSoper/docs/issue15749 branch September 11, 2025 21:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Update examples repo from AWS v6 to AWS v7
2 participants