Ansible error This module has been removed The module documentation for Ansible-2 6 may contain hints for porting

0 votes

My ansible playbook to create an s3 bucket:

- hosts: localhost
  gather_facts: no
  connection: local
  vars_files:
   - aws-creds.yml
  vars:
    bucketname: example
  tasks:
    - name: To Create An S3 Bucket
      s3:
       aws_access_key: "{{ access_key }}"
       aws_secret_key: "{{ secret_key }}"
       bucket: "{{ bucketname }}"
       mode: create

Throws the following error:

This module has been removed.  The module documentation for Ansible-2.6 may contain hints for porting
Aug 26, 2019 by Vikas
1,807 views

1 answer to this question.

0 votes

s3 alias has been removed. Use aws_s3 instead:

- hosts: localhost
  gather_facts: no
  connection: local
  vars_files:
   - aws-creds.yml
  vars:
    bucketname: example
  tasks:
    - name: To Create An S3 Bucket
      aws_s3:
       aws_access_key: "{{ access_key }}"
       aws_secret_key: "{{ secret_key }}"
       bucket: "{{ bucketname }}"
       mode: create
answered Aug 26, 2019 by Vishaka

Related Questions

0 votes
1 answer
0 votes
1 answer

I've been trying to run this code, but the error says "Expected an indented block" for the line, " word_as_list[index] = guess."

Hi, @Paradox, The error message IndentationError: expected an indented ...READ MORE

answered Nov 21, 2020 in Python by anonymous
• 65,770 points
1,152 views
0 votes
1 answer

Web API Error - This request has been blocked; the content must be served over HTTPS

 If your web app is being hosted ...READ MORE

answered Feb 16, 2022 in Others by Aditya
• 7,680 points
35,916 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP