Ansible中是否有用于Kinesis Firehose创建的模块?像kiensis_stream模块,用于Kinesis数据流

时间:2019-05-16 15:22:15

标签: python-3.x ansible amazon-kinesis amazon-kinesis-firehose

我正在尝试使用Ansible创建一个简单的AWS Kinesis Firehose。

我尝试这样做:

- 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"

但是,出现以下错误:

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

但是,以下模块可用于创建Kinesis数据流:

- 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

有人可以告诉我如何解决问题并使用kinesis_firehose模块吗?

0 个答案:

没有答案