本文介绍了AWS CodePipeline中CodeDeployToECS的每个操作配置属性指的是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在AWS CodePipeline中创建Amazon ECS(蓝绿色)操作(CodeDeployToECS).这将使用Terraform完成,因此需要手动指定操作.

I am trying to create an Amazon ECS (Blue Green) action (CodeDeployToECS) in AWS CodePipeline. This will be done using Terraform, so the actions need to be manually specified.

根据 CodePipeline管道结构参考在CodePipeline中的动作结构要求"下,CodeDeployToECS动作具有8个动作配置属性:

According to the CodePipeline Pipeline Structure Reference under the Action Structure Requirements in CodePipeline, a CodeDeployToECS action has 8 action configuration properties:

  • ApplicationName
  • DeploymentGroupName
  • Image1ArtifactName
  • Image1ContainerName
  • AppSpecTemplateArtifact
  • AppSpecTemplatePath
  • TaskDefinitionTemplatePath
  • TaskDefinitionTemplateArtifact
  • ApplicationName
  • DeploymentGroupName
  • Image1ArtifactName
  • Image1ContainerName
  • AppSpecTemplateArtifact
  • AppSpecTemplatePath
  • TaskDefinitionTemplatePath
  • TaskDefinitionTemplateArtifact

没有关于每个操作配置属性的确切详细信息的文档.我能够推断出一些映射到AWS控制台的名称,以进行相应的操作.我能够推断出的映射如下所示.

There were no documentations regarding the exact details of each action configuration property. I was able to infer some of the names mapping to the AWS console for the corresponding action. The mappings I was able to infer is shown below.

但是,两个动作配置属性仍然是一个谜. Image1ArtifactNameImage1ContainerName属性.这两个字段指的是什么?

However, two action configuration properties still remains a mystery; the Image1ArtifactName and the Image1ContainerName properties. What do these two fields refer to?

推荐答案

使用aws-cli,我可以确认Image1ArtifactName对应于标记为输入带有图像细节的工件"的顶部文本字段,而Image1ContainerName对应于标记为带有图像细节的输入伪像"的顶部文本字段.下部文本字段标记为任务定义中的占位符文本".

Using aws-cli, I can confirm that Image1ArtifactName corresponds to the top text field labelled 'Input artifact with image details' while Image1ContainerName corresponds to the lower text field labelled 'Place holder text in the task definition'.

我通过创建另一个CodePipeline并运行aws codepipeline get-pipeline --name my-pipeline以JSON格式获取管道的详细信息进行了确认,这很容易破译字段映射.

I did the confirmation by creating another CodePipeline and running aws codepipeline get-pipeline --name my-pipeline to get the details of the pipeline in JSON format, which was pretty easy to decipher the fields mapping.

这篇关于AWS CodePipeline中CodeDeployToECS的每个操作配置属性指的是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-21 04:08