-
Notifications
You must be signed in to change notification settings - Fork 1.9k
S3 Module 'Failed to connect to S3: Region does not seem to be available for aws module boto.s3.' #3447
Comments
#3347 seems to fix this! |
We ran into this and explicitly setting the region in the task seemed to fix it for us. |
The same problem. "Failed to connect to S3: Region eu-central-1 does not seem to be available for aws module boto.s3. If the region definitely exists, you may need to upgrade boto or extend with endpoints_path". |
The docs are unclear: Do I need to set AWS_REGION and the credentials on the machine Ansible SSH's into, or just on the machine Running Ansible? I'm guessing it needs them for the server be connected to. The weird part is I receive the region error (no region set, note the extra space between "Region does": |
@ansible, ping. This issue is still waiting on your response. |
Any update on this issue? |
This bug appears to be fixed in 2.1.1.0 |
I tryed this morning and it seems that the previous issue is gone but now I somehow cannot get it to connect to bucket. It always says that the bucket cannot be found. Here is the debug output from the run: fatal: [hstreaming04]: FAILED! => {"changed": false, "failed": true, "invocation": {"module_args": {"aws_access_key": "<my_key_is_present_here>", "aws_secret_key": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER", "bucket": "my_bucket_name", "dest": "/tmp/somescript.sh", "ec2_url": null, "encrypt": true, "expiry": 600, "headers": null, "marker": null, "max_keys": 1000, "metadata": null, "mode": "get", "object": "/somescript.sh", "overwrite": "always", "permission": ["private"], "prefix": null, "profile": null, "region": null, "retries": 0, "s3_url": null, "security_token": null, "src": null, "validate_certs": true, "version": null}, "module_name": "s3"}, "msg": "Source bucket cannot be found"} ansible code: - name: Deploy the script to server
s3: bucket=my_bucket_name object=/somescript.sh dest=/tmp/somescript.sh mode=get aws_access_key='<my_key>' aws_secret_key='<my_secret>'
become: yes
tags:
- s3 Am I doing something wrong? |
@ansible, ping. This issue is still waiting on your response. |
I confirm that the issue is fixed in 2.1.1.0 @mmoleksf for your issue, does the bucket you are trying to access is the same region as the env var |
@ansible, ping. This issue is still waiting on your response. |
3 similar comments
@ansible, ping. This issue is still waiting on your response. |
@ansible, ping. This issue is still waiting on your response. |
@ansible, ping. This issue is still waiting on your response. |
This repository has been locked. All new issues and pull requests should be filed in https://github.com/ansible/ansible Please read through the repomerge page in the dev guide. The guide contains links to tools which automatically move your issue or pull request to the ansible/ansible repo. |
ISSUE TYPE
COMPONENT NAME
ANSIBLE VERSION
OS / ENVIRONMENT
SUMMARY
Since commit
0dd58e932680af5d3544a045c5ea0bd0c9eadeb0
(Use connect_to_aws where possible) this error started to happen.Testing with one commit before:
344cf5fc0e2c8637fe9513206b2c843ca60264cf
it is working fine.STEPS TO REPRODUCE
EXPECTED RESULTS
The text was updated successfully, but these errors were encountered: