繁体   English   中英

如何通过 cloudformation 模板向 Kinesis Firehose Delivery stream 添加标签?

[英]How to add tag to a Kinesis Firehose Delivery stream through cloudformation template?

我正在通过 cloudformation 模板创建 Kinesis firehose。 需要给它添加标签。 如何通过 cloudformation 模板向 Kinesis Firehose Delivery stream 添加标签?

此选项尚不可用。 根据文档https://docs.aws.amazon.com/firehose/latest/dev/firehose-tagging.html

使用Amazon Kinesis Data Firehose API为交付流添加标签您可以在调用CreateDeliveryStream创建新的交付流时指定标签。 对于现有的传递流,可以使用以下三个操作来添加,列出和删除标签:

  • TagDeliveryStream
  • ListTagsForDeliveryStream
  • UntagDeliveryStream

当前,您可以使用API​​添加标签: https : //docs.aws.amazon.com/firehose/latest/APIReference/API_TagDeliveryStream.html

或CLI: https : //docs.aws.amazon.com/cli/latest/reference/firehose/tag-delivery-stream.html

当我使用 SAM 部署时,这对我有用

YourDeliveryStream:
    Type: AWS::KinesisFirehose::DeliveryStream
    DependsOn:
      - YOUR_DELIVERY_STREAM_POLICY
    Properties:
      DeliveryStreamName: YOUR_DS_NAME
      DeliveryStreamType: DirectPut
      Tags:
        - Key: "owner"
          Value: my_name
        - Key: "purpose"
          Value: to_stream_data

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM