On Fri, 23 Aug 2019 at 02:27, Amit Kulkarni <[email protected]> wrote:
>
> Hi All,
>
> Need urgent help I am getting below error while creating S3 bucket using
> playbook.
>
> AWS keys I have set up as Environmental variables.
>
> Let me know if I am missing anything.
>
> Below is the playbbok
>
> ---
> - hosts: localhost
> tasks:
> - name: Create an empty bucket
> aws_s3:
> aws_access_key: "{{ lookup('env','aws_key') }}"
> aws_secret_key: "{{ lookup('env','aws_secret') }}"
You look up environment vars here
> NoCredentialsError: Unable to locate credentials
> fatal: [localhost]: FAILED! => {
> "boto3_version": "1.9.212",
> "botocore_version": "1.12.212",
> "changed": false,
> "invocation": {
> "module_args": {
> "aws_access_key": "",
> "aws_secret_key": "",
But the lookup fails, they're NOT in your environment.
So, what have you actually done when you say "AWS keys I have set up
as Environmental variables. "?
--
Dick Visser
Trust & Identity Service Operations Manager
GÉANT
--
You received this message because you are subscribed to the Google Groups
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/CAL8fbwPyjN0U%2BLgL94nyj7gOe07p7wKRog%3D9vNa-OJQXpQiDUA%40mail.gmail.com.