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 bucket create using profile parameter with other provider #1301

Closed
1 task done
eliteaz opened this issue Dec 15, 2022 · 3 comments
Closed
1 task done

S3 bucket create using profile parameter with other provider #1301

eliteaz opened this issue Dec 15, 2022 · 3 comments
Labels
bug This issue/PR relates to a bug module module plugins plugin (any type) python3 waiting_on_contributor Needs help. Feel free to engage to get things unblocked

Comments

@eliteaz
Copy link

eliteaz commented Dec 15, 2022

Summary

with such a simple task:

- name: Create  S3 bucket
  delegate_to: localhost
  s3_bucket:
    name: "{{ item.name }}"
    endpoint_url: "https://s3.eu-central-1.wasabisys.com"
    profile: "wasabi"
    region: "{{ item.region }}"
  with_items: "{{ s3_bucket }}"

get an err Failed to check bucket presence: An error occurred (403) when calling the HeadBucket operation: Forbidden

after removing profile_name from
https://github.com/ansible-collections/amazon.aws/blob/main/plugins/modules/s3_bucket.py#L1160
bucket is created as well

seems like using profile parameter there is additional HEAD header checking.
otherwise than using module access_key and secret_key parameters

Issue Type

Bug Report

Component Name

s3_object, s3_bucket

Ansible Version

ansible [core 2.12.5]
  config file = None
  configured module search path = ['/root/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
  ansible python module location = /usr/local/lib/python3.8/dist-packages/ansible
  ansible collection location = /root/.ansible/collections:/usr/share/ansible/collections
  executable location = /usr/local/bin/ansible
  python version = 3.8.10 (default, Jun 22 2022, 20:18:18) [GCC 9.4.0]
  jinja version = 2.11.3
  libyaml = True

Collection Versions

$ ansible-galaxy collection list
amazon.aws           5.1.0
community.aws        5.0.0

AWS SDK versions

$ pip show boto boto3 botocore
Name: boto
Version: 2.49.0
Name: boto3
Version: 1.26.30
Name: botocore
Version: 1.29.30

Configuration

$ ansible-config dump --only-changed

OS / Environment

No response

Steps to Reproduce

- name: Create  S3 bucket
  delegate_to: localhost
  s3_bucket:
    name: "{{ item.name }}"
    endpoint_url: "https://s3.eu-central-1.wasabisys.com"
    profile: "wasabi"
    region: "{{ item.region }}"
  with_items: "{{ s3_bucket }}"

Expected Results

I expect bucket create using profile parameter

Actual Results

Code of Conduct

  • I agree to follow the Ansible Code of Conduct
@ansibullbot
Copy link

Files identified in the description:

If these files are inaccurate, please update the component name section of the description or use the !component bot command.

click here for bot help

@ansibullbot
Copy link

@ansibullbot ansibullbot added bug This issue/PR relates to a bug module module needs_triage plugins plugin (any type) python3 labels Dec 15, 2022
@jillr jillr added waiting_on_contributor Needs help. Feel free to engage to get things unblocked and removed needs_triage labels Jan 10, 2023
@tremble
Copy link
Contributor

tremble commented Feb 5, 2023

Thanks for taking the time to open this Issue.

This issue should be fixed by #1305 and should be available once we release 6.0.0, however there are a number of substantial changes to the S3 modules which are substantial enough that they're unlikely to be backported to 5.x, and as such the fix probably won't be available for a couple of months.

@tremble tremble closed this as completed Feb 5, 2023
abikouo pushed a commit to abikouo/amazon.aws that referenced this issue Sep 18, 2023
Rename aws_sgw_info module

SUMMARY
In line with the new naming guidelines rename aws_sgw_info to storagegateway_info
ISSUE TYPE

Feature Pull Request

COMPONENT NAME
aws_sgw_info
storagegateway_info
ADDITIONAL INFORMATION

Reviewed-by: Alina Buzachis <None>
abikouo pushed a commit to abikouo/amazon.aws that referenced this issue Sep 18, 2023
Rename aws_sgw_info module

SUMMARY
In line with the new naming guidelines rename aws_sgw_info to storagegateway_info
ISSUE TYPE

Feature Pull Request

COMPONENT NAME
aws_sgw_info
storagegateway_info
ADDITIONAL INFORMATION

Reviewed-by: Alina Buzachis <None>
abikouo pushed a commit to abikouo/amazon.aws that referenced this issue Oct 24, 2023
Rename aws_sgw_info module

SUMMARY
In line with the new naming guidelines rename aws_sgw_info to storagegateway_info
ISSUE TYPE

Feature Pull Request

COMPONENT NAME
aws_sgw_info
storagegateway_info
ADDITIONAL INFORMATION

Reviewed-by: Alina Buzachis <None>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This issue/PR relates to a bug module module plugins plugin (any type) python3 waiting_on_contributor Needs help. Feel free to engage to get things unblocked
Projects
None yet
Development

No branches or pull requests

4 participants