Skip to content
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

S3Bucket external-name annotation not working #424

Closed
publiusi opened this issue Nov 10, 2020 · 5 comments
Closed

S3Bucket external-name annotation not working #424

publiusi opened this issue Nov 10, 2020 · 5 comments
Assignees
Labels
bug Something isn't working

Comments

@publiusi
Copy link

When creating a aws Bucket in a composition, using the external-name annotation:

    - base:
        apiVersion: s3.aws.crossplane.io/v1beta1
        kind: Bucket
        metadata:
          name: poc-dev-bucket
          **annotations:
            crossplane.io/external-name: poc-dev-bucket**
          labels:
            name: poc-dev-bucket

The bucket is not created and the following error is thrown:
failed to query Bucket: BucketRegionError: incorrect region, the bucket is not in ‘us-west-2’ region status code: 301, request id: AF960CE31F54F2A6, host id: mEymAUMu6Qchg9fB3lUS8pGi0D5hRxumiZm2LzzJ+YYyaFns/L2YorqW1mqWZZpmg6worAMgu20=

How can we reproduce it?

What environment did it happen in?

Crossplane version: 0.14

@publiusi publiusi added the bug Something isn't working label Nov 10, 2020
@hasheddan hasheddan assigned hasheddan and krishchow and unassigned hasheddan Nov 10, 2020
@hasheddan
Copy link
Member

@krishchow could you take a look here?

@hasheddan
Copy link
Member

This issue appears to have some good information: aws/aws-sdk-go#720

@muvaf
Copy link
Member

muvaf commented Nov 11, 2020

@publiusi AWS allows to use a bucket name only once in the same AWS account, no matter the region. If you try to create/get a bucket with name of another bucket that exists in a different region, that's what you'd get as an error. I'd check other regions for that bucket and delete it if you really need to use that name in another region.

@publiusi
Copy link
Author

publiusi commented Nov 11, 2020 via email

@publiusi
Copy link
Author

re-tested creating a new bucket and works fine , closing the issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants