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 by Vikas
20 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 by Vishaka

Related Questions

0 votes
1 answer
0 votes
1 answer
0 votes
1 answer

How can I solve this: To prevent a memory leak, the JDBC Driver has been forcibly unregistered

What can you do? Ignore these warnings. Tomcat ...READ MORE

answered Jan 8 in Java by Daisy
• 8,050 points
3,371 views