简体   繁体   English

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

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

I am creating Kinesis firehose via cloudformation template.我正在通过 cloudformation 模板创建 Kinesis firehose。 Need to add tags to it.需要给它添加标签。 How to add tag to a Kinesis Firehose Delivery stream through cloudformation template?如何通过 cloudformation 模板向 Kinesis Firehose Delivery stream 添加标签?

This option is not available yet. 此选项尚不可用。 Per the documentation https://docs.aws.amazon.com/firehose/latest/dev/firehose-tagging.html : 根据文档https://docs.aws.amazon.com/firehose/latest/dev/firehose-tagging.html

Tagging Delivery Streams Using the Amazon Kinesis Data Firehose API You can specify tags when you invoke CreateDeliveryStream to create a new delivery stream. 使用Amazon Kinesis Data Firehose API为交付流添加标签您可以在调用CreateDeliveryStream创建新的交付流时指定标签。 For existing delivery streams, you can add, list, and remove tags using the following three operations: 对于现有的传递流,可以使用以下三个操作来添加,列出和删除标签:

  • TagDeliveryStream TagDeliveryStream
  • ListTagsForDeliveryStream ListTagsForDeliveryStream
  • UntagDeliveryStream UntagDeliveryStream

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

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

This works for me when I deploy with SAM当我使用 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.

相关问题 Kinesis Firehose Delivery Stream 在使用 cloudformation 时无法承担角色 - Kinesis Firehose Delivery Stream is unable to assume role while using cloudformation 如何使用terraform将kinesis流与firehose传输流连接 - How to connect a kinesis stream with a firehose delivery stream using terraform 如何更改现有的AWS Kinesis Firehose交付流的目的地 - How to change destination for an existing aws kinesis Firehose delivery stream 如何在不通过 Kinesis Data 的情况下直接将 KPL(Kinesis Producer Library)集成到 Kinesis firehose Stream - How to integrate KPL (Kinesis Producer Library) to Kinesis firehose directly without going through Kinesis Data Stream 从数据 stream (Kinesis) 到 OpenSearch AWS 创建交付 stream (Firehose) - Create delivery stream (Firehose) from data stream (Kinesis) to OpenSearch AWS 如何使用 python cdk 启用动态分区创建 kinesis firehose 交付 stream? - How to create a kinesis firehose delivery stream with dynamic partitions enabled using python cdk? 停止将Kinesis Firehose运送到redshift - Stop Kinesis Firehose delivery to redshift AWS Put Subscription Filter for Kinesis Firehose using Cloudformation - 检查给定的 Firehose stream 是否处于活动状态 state - AWS Put Subscription Filter for Kinesis Firehose using Cloudformation - Check if the given Firehose stream is in ACTIVE state 是否有 AWS CDK 代码可用于为 Kinesis firehose 交付 stream 启用 WAF 日志记录? - Is there a AWS CDK code available to enable WAF logging for Kinesis firehose delivery stream? AWS EventBridge 规则能否以另一个账户中的 Kinesis Firehose 传输流为目标? - Can an AWS EventBridge Rule target a Kinesis Firehose Delivery Stream in another account?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM