-
Notifications
You must be signed in to change notification settings - Fork 341
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_bucket fails if bucket does not exist yet #707
Comments
As always, one realizes after hitting the Submit button... The bucket name must be globally unique. |
abikouo
pushed a commit
to abikouo/amazon.aws
that referenced
this issue
Sep 18, 2023
…-version cloudfront_distribution: add new security policy version TLSv1.2_2021 SUMMARY Add new TLSv1.2_2021 security policy for CloudFront viewer connections. ISSUE TYPE Feature Pull Request COMPONENT NAME cloudfront_distribution ADDITIONAL INFORMATION https://aws.amazon.com/about-aws/whats-new/2021/06/amazon-cloudfront-announces-new-tlsv12_2021-security-policy-for-viewer-connections/ Reviewed-by: Alina Buzachis <None> Reviewed-by: Markus Bergholz <[email protected]> Reviewed-by: None <None>
abikouo
pushed a commit
to abikouo/amazon.aws
that referenced
this issue
Oct 24, 2023
…-version cloudfront_distribution: add new security policy version TLSv1.2_2021 SUMMARY Add new TLSv1.2_2021 security policy for CloudFront viewer connections. ISSUE TYPE Feature Pull Request COMPONENT NAME cloudfront_distribution ADDITIONAL INFORMATION https://aws.amazon.com/about-aws/whats-new/2021/06/amazon-cloudfront-announces-new-tlsv12_2021-security-policy-for-viewer-connections/ Reviewed-by: Alina Buzachis <None> Reviewed-by: Markus Bergholz <[email protected]> Reviewed-by: None <None>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Summary
I am trying to create an S3 bucket on AWS, if it does not exist yet.
This is my task:
It fails if the bucket does not exist yet (according to the docs, a bucket should be created in this case).
If the bucket already exists, the task completes successfully.
I suspect that it is due to this change:
#357
For the case of a non-existent bucket, the ListBucket command returns an empty list.
The HeadBucket command returns 403 in this case, but the code checks for 404.
(Note: I gave my IAM user full admin rights, which include the list-bucket permissions necessary to run HeadBucket).
Would someone be able to confirm that the new code indeed works to create buckets that did not exist before?
Issue Type
Bug Report
Component Name
s3_bucket
Ansible Version
Collection Versions
AWS SDK versions
Configuration
OS / Environment
MacOS 12.2.1, ansible installed using brew
Steps to Reproduce
Expected Results
I expected the task to complete ok.
It works, if the bucket already exists.
If fails, if the bucket does not exist yet, although the documentation states that a new bucket should be created.
Actual Results
Code of Conduct
The text was updated successfully, but these errors were encountered: