-
Notifications
You must be signed in to change notification settings - Fork 9.2k
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
Improve support for third party S3 #23278
Conversation
Third party S3 might reply `NotImplemented` error when creating a bucket. This error prevent the successful apply of the plan. Example when checking policy: ``` ╷ │ Error: error getting S3 bucket ([redacted]) policy: NotImplemented: The requested resource is not implemented │ status code: 501, request id: [redacted], host id: [redacted] │ │ with aws_s3_bucket.lts, │ on main.tf line 22, in resource "aws_s3_bucket" "lts": │ 22: resource "aws_s3_bucket" "lts" { │ ╵ ``` Example when checking for payment: ``` ╷ │ Error: error getting S3 Bucket request payment: NotImplemented: The requested resource is not implemented │ status code: 501, request id: txc25b2f0fe509409081b8b-00620fcb0c, host id: txc25b2f0fe509409081b8b-00620fcb0c │ │ with aws_s3_bucket.lts, │ on main.tf line 23, in resource "aws_s3_bucket" "lts": │ 23: resource "aws_s3_bucket" "lts" { │ ╵ ``` Closes: hashicorp#14645, hashicorp#13726 Signed-off-by: Wilfried Roset <[email protected]>
I've no AWS account available to run acceptance tests but all unit tests are successful
|
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.
Welcome @wilfriedroset 👋
It looks like this is your first Pull Request submission to the Terraform AWS Provider! If you haven’t already done so please make sure you have checked out our CONTRIBUTING guide and FAQ to make sure your contribution is adhering to best practice and has all the necessary elements in place for a successful approval.
Also take a look at our FAQ which details how we prioritize Pull Requests for inclusion.
Thanks again, and welcome to the community! 😃
Hi @wilfriedroset , thank you for raising this PR! overall it looks great, we just need to add in a changelog file so I'll do so in an upcoming commit and see if we can additionally account for the err code mentioned in #14645 while we are here 😄 |
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.
Thank you again for this PR @wilfriedroset , LGTM 🚀
Output of acceptance tests:
--- PASS: TestAccS3Bucket_Basic_forceDestroyWithEmptyPrefixes (20.28s)
--- PASS: TestAccS3Bucket_Basic_basic (22.05s)
--- PASS: TestAccS3Bucket_Manage_objectLock (22.44s)
--- PASS: TestAccS3Bucket_Tags_basic (23.92s)
--- PASS: TestAccS3Bucket_Basic_forceDestroyWithObjectLockEnabled (25.00s)
--- PASS: TestAccS3Bucket_Basic_forceDestroy (18.20s)
--- PASS: TestAccS3Bucket_Basic_generatedName (20.20s)
--- PASS: TestAccS3Bucket_Manage_objectLockWithVersioning (24.61s)
--- PASS: TestAccS3Bucket_Basic_shouldFailNotFound (14.66s)
--- PASS: TestAccS3Bucket_Tags_ignoreTags (36.50s)
--- PASS: TestAccS3Bucket_Basic_namePrefix (20.37s)
--- PASS: TestAccS3Bucket_Basic_emptyString (20.77s)
--- PASS: TestAccS3Bucket_Tags_withNoSystemTags (70.26s)
--- PASS: TestAccS3Bucket_Tags_withSystemTags (115.82s)
cbcd841
to
22d26fb
Compare
This functionality has been released in v4.2.0 of the Terraform AWS Provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template. Thank you! |
It seems in my flavor of third-party "S3 compatible" API, the bucket logging returns a not implemented error:
Would it be possible to add the same logic as those other endpoints as well ? |
Relates to hashicorp#23278 Signed-off-by: Wilfried Roset <[email protected]>
I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. |
Third party S3 might reply
NotImplemented
error when creating abucket. This error prevent the successful apply of the plan.
Example when checking policy:
Example when checking for payment:
Closes #14645
Closes #13726
Community Note
Output from acceptance testing: