What does each action configuration property of CodeDeployToECS refers to in AWS CodePipeline?

风格不统一 提交于 2020-03-25 08:09:48

问题


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.

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

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.

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


回答1:


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'.

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.



来源:https://stackoverflow.com/questions/56772996/what-does-each-action-configuration-property-of-codedeploytoecs-refers-to-in-aws

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!