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

S3 creation error: CannotCreateExternalResource managed/bucket.s3.aws.crossplane.io failed to create the Bucket: InvalidBucketAclWithObjectOwnership: Bucket cannot have ACLs set with ObjectOwnership's BucketOwnerEnforced setting #12

Closed
jonashackt opened this issue May 5, 2023 · 1 comment · Fixed by #13

Comments

@jonashackt
Copy link
Owner

jonashackt commented May 5, 2023

There seem to be new security rules for AWS S3 from April 2023 on https://aws.amazon.com/about-aws/whats-new/2022/12/amazon-s3-automatically-enable-block-public-access-disable-access-control-lists-buckets-april-2023/

Running a k describe bucket.s3.aws.crossplane.io/microservice-ui-nuxt-js-static-bucket2 gives the following error event:

$ k describe bucket.s3.aws.crossplane.io/microservice-ui-nuxt-js-static-bucket2
...
Events:
  Type     Reason                        Age                From                                 Message
  ----     ------                        ----               ----                                 -------
  Warning  CannotCreateExternalResource  47s (x9 over 85s)  managed/bucket.s3.aws.crossplane.io  failed to create the Bucket: api error InvalidBucketAclWithObjectOwnership: Bucket cannot have ACLs set with ObjectOwnership's BucketOwnerEnforced setting

Thats also a problem in Terraform, see hashicorp/terraform-provider-aws#28353

And this so Q&A: https://stackoverflow.com/questions/76097031/aws-s3-bucket-cannot-have-acls-set-with-objectownerships-bucketownerenforced-s

This now leads to failing pipelines all over - see #11 etc.

@jonashackt
Copy link
Owner Author

jonashackt added a commit that referenced this issue May 5, 2023
… to use the official AWS provider instead of the classic
jonashackt added a commit that referenced this issue May 8, 2023
jonashackt added a commit that referenced this issue May 8, 2023
jonashackt added a commit that referenced this issue May 8, 2023
jonashackt added a commit that referenced this issue May 9, 2023
jonashackt added a commit that referenced this issue May 9, 2023
jonashackt added a commit that referenced this issue May 9, 2023
… to use the official AWS provider instead of the classic
jonashackt added a commit that referenced this issue May 9, 2023
jonashackt added a commit that referenced this issue May 9, 2023
jonashackt added a commit that referenced this issue May 9, 2023
jonashackt added a commit that referenced this issue May 9, 2023
jonashackt added a commit that referenced this issue May 9, 2023
jonashackt added a commit that referenced this issue May 10, 2023
…therwise run into K8s API performance issues
jonashackt added a commit that referenced this issue May 10, 2023
…therwise run into K8s API performance issues
jonashackt added a commit that referenced this issue May 10, 2023
jonashackt added a commit that referenced this issue May 10, 2023
… error ` Error from server (NotFound): resourcegroups.azure.crossplane.io "rg-crossplane" not found`
jonashackt added a commit that referenced this issue May 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment