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,233 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 20, 2020 in Python by anonymous
• 65,870 points
142 views
0 votes
1 answer