aws-cloudformation - 我们可以在单个 Cloudformation 模板中部署两个 Kinesis Firehose 传输流吗?如果是,如何?

标签 aws-cloudformation amazon-kinesis-firehose

  1. 我只能使用 CFN 部署一个传输流。有两个 Kinesis firehose 传输流。是否有任何替代方法可以在单个模板中完成两个 Kinesis firehose。谢谢!!

     AWSTemplateFormatVersion: '2010-09-09'
     Resources:
    
     ##Kinesis Firehose1
     DeliveryStreamLogGroup:   ## Cloudwatch log group
        Type: AWS::Logs::LogGroup 
        Properties:
         LogGroupName: ----
    
     DeliveryStreamLogStreamS3: # Cloudwatch log stream
       Type: AWS::Logs::LogStream
       Properties:
         LogGroupName: ---
         LogStreamName: ---
    
     DeliveryStreamLogStreamRedshift:
       Type: AWS::Logs::LogStream
       Properties:
         LogGroupName: ---
         LogStreamName: ---
    
     DeliveryStream:
      Type: AWS::KinesisFirehose::DeliveryStream
      DependsOn: RedshiftCluster
      Properties:
      DeliveryStreamName: ---
      DeliveryStreamType: ---
      RedshiftDestinationConfiguration: ---
    

    ##Kinesis Firehose2 交付流日志组: 类型:AWS::Logs::LogGroup 特性: 日志组名称:----

     DeliveryStreamLogStreamS3:
       Type: AWS::Logs::LogStream
       Properties:
         LogGroupName: ---
         LogStreamName: ---
    
     DeliveryStreamLogStreamRedshift:
       Type: AWS::Logs::LogStream
       Properties:
         LogGroupName: ---
        LogStreamName: ---
    
     DeliveryStream:
       Type: AWS::KinesisFirehose::DeliveryStream
       DependsOn: RedshiftCluster
       Properties:
          DeliveryStreamName: ---
          DeliveryStreamType: ---
          RedshiftDestinationConfiguration: ---
    

最佳答案

是的。你可以。只需为您的传输流资源指定不同的名称即可

DeliveryStream1:
   Type: AWS::KinesisFirehose::DeliveryStream
   DependsOn: RedshiftCluster1
   Properties:
      DeliveryStreamName: ---
      DeliveryStreamType: ---
      RedshiftDestinationConfiguration: ---
DeliveryStream2:
   Type: AWS::KinesisFirehose::DeliveryStream
   DependsOn: RedshiftCluster2
   Properties:
      DeliveryStreamName: ---
      DeliveryStreamType: ---
      RedshiftDestinationConfiguration: ---

“Type”属性定义您要创建的资源类型。您可以创建多个相同类型的资源,前提是您为相同类型的每个资源指定了不同的名称

关于aws-cloudformation - 我们可以在单个 Cloudformation 模板中部署两个 Kinesis Firehose 传输流吗?如果是,如何?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/68022628/

相关文章:

amazon-web-services - 通过 Terraform 创建的 AWS Glue 中的无效架构错误

hyperledger-fabric - AWS CloudFormation 启动 Hyperledger Fabric 失败,错误为 : failed to create: [EC2InstanceForDev]

c# - 在 Visual Studio 中更改 AWS CloudFormation 发布的解决方案配置

amazon-web-services - 使用 AWS Kinesis 上传大文件

amazon-web-services - 将 Kinesis Firehose 设置为 CloudFormation 中 CloudWatch Events 规则的目标

amazon-web-services - 用 Go 插入 firehose

amazon-web-services - AWS Glue Cloudformation 排除模式排除 : String

amazon-web-services - Route 53 两个具有相同域覆盖的托管区域

amazon-web-services - 部署时未找到 ID 错误的托管区域

base64 - AWS API网关和Kinesis Firehose集成: Adding Additonal data