[英]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:
对于现有的传递流,可以使用以下三个操作来添加,列出和删除标签:
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.