0

I am trying to create a simple AWS Kinesis Firehose using Ansible.

I tried doing this:

- name: Create
    kinesis_firehose:
      state: present
      name: example
      stream_type: DirectPut
      dest: Elasticsearch
      role_arn: "arn:aws:iam::111111111111:role/firehose_delivery_role"
      dest_arn: "arn:aws:es:ap-northeast-1:111111111:domain/es"
      backup_mode: FailedDocumentsOnly
      es_index_name: es-index1
      es_type_name: test
      es_index_rotation_period: OneDay
      es_buffering_mb: 10
      s3_bucket_arn: "arn:aws:s3:::backup"

But, got the following error:

ERROR! no action detected in task. This often indicates a misspelled module name, or incorrect module path.

The error appears to have been in '/......./ansible/roles/stream/tasks/main.yml': line 17, column 3, but may
be elsewhere in the file depending on the exact syntax problem.

The offending line appears to be:

- name: Create
    kinesis_firehose:
                    ^ here

However, the following module works for Kinesis data stream creation:

- name: Create Kinesis Data Stream
  kinesis_stream:
    name: "{{ stream.kinesis.name }}"
    shards: "{{ stream.kinesis.shards }}"
    wait: "{{ stream.kinesis.wait }}"
    wait_timeout: "{{ stream.kinesis.waitTimeout }}"
  register: kinesis_Stream_Trial

Can someone tell me how to resolve the Issue and use kinesis_firehose module?

Anjana Shivangi
  • 397
  • 2
  • 5
  • 19
  • 1
    It would have been helpful if you included in your question that you already knew about [PR #31317](https://github.com/ansible/ansible/pull/31317) as that would have saved everyone a ton of time looking for it. But, as you saw, that PR is still open, and thus you can't expect your production copy of ansible to magically acquire that file. If you feel brave, and want to ignore all the comments on that PR, you are more than welcome to [download the file](https://github.com/ansible/ansible/blob/0ce1c4ce/lib/ansible/modules/cloud/amazon/kinesis_firehose.py) into your `library` folder and test it – mdaniel May 16 '19 at 15:55
  • Thank you @Matthew L Daniel . Sorry, I am new to Ansible and what you shared helped me understand how this works. As, I'm just trying things out, I think I will try to download the file and Test it. Thanks! – Anjana Shivangi May 16 '19 at 16:13

0 Answers0