-
Notifications
You must be signed in to change notification settings - Fork 122
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
Document migrating aws.s3.Bucket to aws.s3.BucketV2 #5444
Conversation
@interurban opening for early review, thanks a lot! As an aside, I'm working to get examples formatted with the right |
Your site preview for commit 6812b5d is ready! 🎉 http://registry--origin-pr-5444-6812b5d7.s3-website.us-west-2.amazonaws.com/registry. |
Your site preview for commit 95a25b7 is ready! 🎉 http://registry--origin-pr-5444-95a25b7f.s3-website.us-west-2.amazonaws.com/registry. |
Your site preview for commit f7e5595 is ready! 🎉 http://registry--origin-pr-5444-f7e5595e.s3-website.us-west-2.amazonaws.com/registry. |
Your site preview for commit 50358fc is ready! 🎉 http://registry--origin-pr-5444-50358fc1.s3-website.us-west-2.amazonaws.com/registry. |
Looks like something with choosers inside lists is not happy: /home/runner/work/registry/registry/themes/default/content/registry/packages/aws/how-to-guides/bucketv2-migration.md: |
Your site preview for commit f9a1f60 is ready! 🎉 http://registry--origin-pr-5444-f9a1f600.s3-website.us-west-2.amazonaws.com/registry. |
themes/default/content/registry/packages/aws/how-to-guides/bucketv2-migration.md
Outdated
Show resolved
Hide resolved
themes/default/content/registry/packages/aws/how-to-guides/bucketv2-migration.md
Outdated
Show resolved
Hide resolved
themes/default/content/registry/packages/aws/how-to-guides/bucketv2-migration.md
Outdated
Show resolved
Hide resolved
2. Perform `pulumi up` to replace (delete and re-create) the buckets in AWS. | ||
|
||
If replacement is not acceptable, it is possible to perform a manual migration with `pulumi import` (see Avoiding | ||
replacement). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should be able to link to the section like this: [Avoiding Replacement](#avoiding-replacement)
. Not 100% sure though whether Hugo supports that syntax
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's been failing builds. Looks like this only works in GitHub markdown. @interurban might have some pointers here.
themes/default/content/registry/packages/aws/how-to-guides/bucketv2-migration.md
Outdated
Show resolved
Hide resolved
themes/default/content/registry/packages/aws/how-to-guides/bucketv2-migration.md
Outdated
Show resolved
Hide resolved
against the actual cloud account. While the details will vary depending on your use case, this procedure generally | ||
involves the following steps: | ||
|
||
- Find URNs for legacy Bucket Pulumi resources using `pulumi stack export` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should be able to extract those with jq, right? Could be a nice addition to add that here
Your site preview for commit a26fefd is ready! 🎉 http://registry--origin-pr-5444-a26fefd1.s3-website.us-west-2.amazonaws.com/registry. |
Your site preview for commit f172554 is ready! 🎉 http://registry--origin-pr-5444-f1725541.s3-website.us-west-2.amazonaws.com/registry. |
@flostadler I went ahead and took a larger bucket example for a spin through the import-based migration procedure. It worked but highlighted a few extra steps, this was useful. For alternative upgrade procedures. I have filed pulumi/pulumi-aws#4471 as this seems to have regressed. I've also had a slack conversation with a user trying this today and filed pulumi/pulumi-aws#4470 - sounds like we could do a bit more possibly, depending on interest here. |
Your site preview for commit e7f99a0 is ready! 🎉 http://registry--origin-pr-5444-e7f99a0d.s3-website.us-west-2.amazonaws.com/registry. |
92056f2
to
27c92fc
Compare
@cnunciato we have considered some possibilities here but they remain much more complicated that appears on the surface. I'm tracking some relevant issues here in pulumi-aws:
For the moment I think our recommendation is to proceed with the documentation updates, incorporating Matt's latest comment the stance is:
At the time of pulumi-aws v7 major at some point in the future mostly driven by upstream decisions on breaking changes we'll reconsider the above tooling ideas. Possibly we'll also have a little bit more user signal on importance of this by that time. |
Your site preview for commit 27c92fc is ready! 🎉 http://registry--origin-pr-5444-27c92fc3.s3-website.us-west-2.amazonaws.com/registry. |
Site previews for this pull request have been removed. ✨ |
Add a note for the aws.s3.Bucket page to direct users to aws.s3.BucketV2. Fixes pulumi/home#3629 Fix an issue with documentation override: due to a bug `docs/resource/aws_s3_bucket_legacy.md` was not being picked up and the `aws.s3.Bucket` page was incorrectly serving docs for the `aws.s3.BucketV2` resource. This is fixed here. This PR should not merge until pulumi/registry#5444 gets published.
Description
Add a migration guide for moving from aws.s3.Bucket to aws.s3.BucketV2.
Fixes https://github.com/pulumi/home/issues/3630
Adding a new package?
If this pull request adds a new package:
Cloud
,Infrastructure
,Network
,Database
,Monitoring
, orUtility
)./docs/_index.md
) that includes:layout
set topackage
./docs/installation-configuration.md
) that includes:pulumi config set
.v
that corresponds with a valid GitHub release and published package SDKs