question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

BucketAlreadyOwnedByYou

See original GitHub issue

What happened?

When changing the code a bit, Pulumi ended up trying to create a bucket that already existed. Using the -r (refresh) option didn’t solve it either.

Steps to reproduce

  1. Create a bucket with new aws.s3.Bucket('old-name', { websiteDomain: 'example.com', … })
  2. Deploy
  3. Rename entity with new aws.s3.Bucket('new-name', { websiteDomain: 'example.com', … })
  4. Try to deploy

Expected Behavior

Pulumi should understand that the bucket already exists and should probably delete-and-recreate.

Actual Behavior

AWS Error: BucketAlreadyOwnedByYou

Versions used

Additional context

No response

Contributing

Vote on this issue by adding a 👍 reaction. To contribute a fix for this issue, leave a comment (and link to your pull request, if you’ve opened one already).

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:1
  • Comments:11 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
stack72commented, May 25, 2022

I am going to look at how we can recreate this

0reactions
gunarcommented, May 26, 2022

Thanks. Yeah that’s pretty much it I guess. The only thing is that in my “after” I was iterating over an array to generate the buckets dynamically, but I suppose that doesn’t change anything w.r.t. pulumi.

Thanks for now. I’ll come back to this thread if this show up again. Thanks.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Boto s3 error. BucketAlreadyOwnedByYou - Stack Overflow
BucketAlreadyOwnedByYou errors will only be returned outside of the US Standard region. Inside the US Standard region (i.e. when you don't ...
Read more >
BucketAlreadyOwnedByYou - AWS SDK for JavaScript v3
The bucket you tried to create already exists, and you own it. Amazon S3 returns this error in all Amazon Web Services Regions...
Read more >
BucketAlreadyOwnedByYou Issue #6159 - GitHub
Hello All, When re-running terraform to create or change s3 buckets this happens: module.organisation-asset.aws_s3_bucket.bucket: 1 error(s) occurred: ...
Read more >
AWS::S3::BucketAlreadyOwnedByYou error - Google Groups
but I keep on getting 'AWS::S3::BucketAlreadyOwnedByYou (Your previous request to create the named bucket succeeded and you already own
Read more >
Bug #17398: S3 CreateBucket should issue ... - Ceph Tracker
S3 CreateBucket should issue 409 BucketAlreadyOwnedByYou or 400 IllegalLocationConstraintException for mismatched placement pool · Affected Versions: · ceph-qa- ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found