简体   繁体   中英

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

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?

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM