Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/powerbi/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Amazon web services AWS Image Builder中是否支持容器配方的CDK或CloudFormation?_Amazon Web Services_Aws Cdk - Fatal编程技术网

Amazon web services AWS Image Builder中是否支持容器配方的CDK或CloudFormation?

Amazon web services AWS Image Builder中是否支持容器配方的CDK或CloudFormation?,amazon-web-services,aws-cdk,Amazon Web Services,Aws Cdk,我在或文档中没有看到AWS Image Builder的容器配方的任何资源 我能找到的最接近的东西是对图像配方的支持,它不用于创建容器图像,只用于AMI。我真的需要将此资源添加到我的CF堆栈中,以创建一个图像(如容器图像)管道,将生成的图像推送到ECR。。。我只能手动操作。。到目前为止 我使用的是TS CDK库,这并不重要。在CloudInformation中有: 创建一个新的容器配方。容器配方定义如何配置、测试和评估图像 这些文档还提供了如何创建容器配方。因此,您的问题并不清楚,您是否希望在C

我在或文档中没有看到AWS Image Builder的容器配方的任何资源

我能找到的最接近的东西是对图像配方的支持,它不用于创建容器图像,只用于AMI。我真的需要将此资源添加到我的CF堆栈中,以创建一个图像(如容器图像)管道,将生成的图像推送到ECR。。。我只能手动操作。。到目前为止


我使用的是TS CDK库,这并不重要。

在CloudInformation中有:

创建一个新的容器配方。容器配方定义如何配置、测试和评估图像

这些文档还提供了如何创建容器配方。因此,您的问题并不清楚,您是否希望在CloudFormation中创建不同类型的容器副本

文档中的示例:

Resources:
   ContainerRecipeAllParameters:
      Type: 'AWS::ImageBuilder::ContainerRecipe'
      Properties:
         Name: 'container-recipe-name'
         Version: '1.0.0'
         ParentImage: !Ref ParentImage
         Description: 'description'
         ContainerType: 'DOCKER'
         Components:
            - ComponentArn: !Ref ComponentArn
            - ComponentArn: !Ref AnotherComponentArn
         TargetRepository:
            Service: 'ECR'
            RepositoryName: !Ref RepositoryName
         DockerfileTemplateData: |
           FROM {{{ imagebuilder:parentImage }}}
           {{{ imagebuilder:environments }}}
           {{{ imagebuilder:components }}}
         WorkingDirectory: "dummy-working-directory"
         KmsKeyId: !Ref KmsKeyId
         Tags:
            Usage: 'Documentation'

idk如果AWS::ImageBuilder::ContainerRecipe资源是新的或我只是没有看到它,但我发誓在我发布此内容时它不是一个选项。。。或者可能是lol。。。idk@aphexlog不知道是不是新的。也许CFN资源有相似的名称,所以它可能只是一个简单的例子,就像忽略它一样。