Uploaded image for project: 'Ansible Cloud Automation'
  1. Ansible Cloud Automation
  2. ACA-1723

[amazon.aws/2180] s3_bucket module always fails in AWS GovCloud

XMLWordPrintable

    • False
    • Hide

      None

      Show
      None
    • False
    • CC Team ScrumBan: Sprint 0

      https://github.com/ansible-collections/amazon.aws/issues/2180

          1. Summary

      With the introduction of Transfer Acceleration support in #2046, `s3_bucket` module always fails in AWS GovCloud.

      I believe this is due to `get_bucket_accelerate_configuration` API call [here](https://github.com/ansible-collections/amazon.aws/blob/8d376986155cad278e96c449d8901dc4238af117/plugins/modules/s3_bucket.py#L1249) and the fact that [Transfer Acceleration is not supported in GovCloud](https://docs.aws.amazon.com/govcloud-us/latest/UserGuide/govcloud-s3.html#govcloud-S3-diffs).

          1. Issue Type

      Bug Report

          1. Component Name

      s3_bucket

          1. Ansible Version

      ```console
      $ ansible --version
      ansible [core 2.17.1]
      config file = ~/.ansible.cfg
      configured module search path = ['~/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
      ansible python module location = ~/.env/lib/python3.12/site-packages/ansible
      ansible collection location = ~/.ansible/collections
      executable location = ~/.env/bin/ansible
      python version = 3.12.4 (main, Jun 6 2024, 18:26:44) [Clang 15.0.0 (clang-1500.3.9.4)] jinja version = 3.1.3
      libyaml = True
      ```

          1. Collection Versions

      ```console
      $ ansible-galaxy collection list
      Collection Version
      --------------------- -------
      amazon.aws 8.0.1
      ansible.netcommon 5.1.1
      ansible.posix 1.5.4
      ansible.utils 2.10.3
      community.aws 8.0.0
      community.general 9.1.0
      ```

          1. AWS SDK versions

      ```console (paste below)
      $ pip show boto boto3 botocore
      Name: boto3
      Version: 1.34.138
      Summary: The AWS SDK for Python
      Home-page: https://github.com/boto/boto3
      Author: Amazon Web Services
      Author-email:
      License: Apache License 2.0
      Location: ~/.env/lib/python3.12/site-packages
      Requires: botocore, jmespath, s3transfer
      Required-by:

      Name: botocore
      Version: 1.34.138
      Summary: Low-level, data-driven core of boto 3.
      Home-page: https://github.com/boto/botocore
      Author: Amazon Web Services
      Author-email:
      License: Apache License 2.0
      Location: ~/.env/lib/python3.12/site-packages
      Requires: jmespath, python-dateutil, urllib3
      Required-by: boto3, s3transfer
      ```

          1. Configuration

      ```console (paste below)
      $ ansible-config dump --only-changed

      ```

          1. OS / Environment

      No response

          1. Steps to Reproduce

      <!--- Paste example playbooks or commands between quotes below -->
      ```yaml (paste below)

      • amazon.aws.s3_bucket:
        name: MyBucket
        state: present
        ```
          1. Expected Results

      Bucket is created, or no changes are made if the bucket already exists.

          1. Actual Results

      ```console (paste below)
      Failed to fetch bucket transfer acceleration state: An error occurred (UnsupportedArgument) when calling the GetBucketAccelerateConfiguration operation: The request contained an unsupported argument.
      ```

          1. Code of Conduct
      • [X] I agree to follow the Ansible Code of Conduct

            abikouo1@redhat.com BIKOUO AUBIN
            jrouleau Jill Rouleau
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: