English 中文(简体)
无效行动组合: 试图阅读任务定义时的例外情况
原标题:Invalid action configuration: Exception while trying to read the task definition artifact file

我有一条《守则》管道,利用欧盟S蓝色/绿色部署行动,向欧洲安全委员会的一个分组部署一个欧洲安全委员会的形象。 管道有两种来源:一种是使用AWS ECR行动的ECR图像,另一种是利用第三维吉布行动从Github调取图像。 环保委员会的行动产出如下:image artifact,而Github行动产出为config artifact。 这两部手工艺品都作为对欧共体蓝色部署/绿色部署行动的投入提供。

该管道在ECS蓝色部署/绿色部署行动中失败,有以下错误(从AWS console可见):

www.un.org/Depts/DGACM/index_spanish.htm 无效行动组合

Exception while trying to read the task definition artifact file from: config

这里是管道结构(有些细节为匿名而编辑):

$ aws codepipeline get-pipeline --name my-codepipeline
{
  "pipeline": {
    "name": "my-codepipeline",
    "roleArn": "arn:aws:iam::123456789000:role/my-codepipeline-role",
    "artifactStore": {
      "type": "S3",
      "location": "my-codepipeline-s3"
    },
    "stages": [
      {
        "name": "Source",
        "actions": [
          {
            "name": "ImageSource",
            "actionTypeId": {
              "category": "Source",
              "owner": "AWS",
              "provider": "ECR",
              "version": "1"
            },
            "runOrder": 1,
            "configuration": {
              "ImageTag": "latest",
              "RepositoryName": "my-ecr"
            },
            "outputArtifacts": [
              {
                "name": "image"
              }
            ],
            "inputArtifacts": []
          },
          {
            "name": "ConfigSource",
            "actionTypeId": {
              "category": "Source",
              "owner": "ThirdParty",
              "provider": "GitHub",
              "version": "1"
            },
            "runOrder": 1,
            "configuration": {
              "Branch": "master",
              "OAuthToken": "****",
              "Owner": "me",
              "PollForSourceChanges": "false",
              "Repo": "application-config"
            },
            "outputArtifacts": [
              {
                "name": "config"
              }
            ],
            "inputArtifacts": []
          }
        ]
      },
      {
        "name": "Deploy",
        "actions": [
          {
            "name": "DeployBackend",
            "actionTypeId": {
              "category": "Deploy",
              "owner": "AWS",
              "provider": "CodeDeployToECS",
              "version": "1"
            },
            "runOrder": 1,
            "configuration": {
              "AppSpecTemplateArtifact": "config",
              "AppSpecTemplatePath": "production/appspec.yaml",
              "ApplicationName": "my-codedeploy",
              "DeploymentGroupName": "my-codedeploy-group",
              "Image1ArtifactName": "image",
              "Image1ContainerName": "IMAGE_NAME",
              "TaskDefinitionTemplateArtifact": "config",
              "TaskDefinitionTemplatePath": "production/taskdef.json"
            },
            "outputArtifacts": [],
            "inputArtifacts": [
              {
                "name": "image"
              },
              {
                "name": "config"
              }
            ]
          }
        ]
      }
    ],
    "version": 1
  },
  "metadata": {
    "pipelineArn": "arn:aws:codepipeline:ap-northeast-1:123456789000:my-codepipeline",
    "created": 1564107543.285,
    "updated": 1564107543.285
  }
}

我检查了S3号压缩手法,其中肯定载有Github存放处的配置文件,地址是AppSpecTemplatePath

此处为<编码>应用光谱>。

$ cat production/appspec.yaml
version: 0.0
Resources:
  - TargetService:
      Type: AWS::ECS::Service
      Properties:
        TaskDefinition: <TASK_DEFINITION>
        LoadBalancerInfo:
          ContainerName: "my-container"
          ContainerPort: 80
最佳回答

在广泛尝试事情之后,我用我无法找到的外语 st。 read子说,向行动传递的工艺品不会大于3兆瓦。

我解决了我的问题,缩小了工艺品的规模(config)。 配置存放处在许多项目中共享,通过将这些物品转移到另一个项目,我将压缩工艺规模从14个甲基溴降至3千B。 很奇怪的是,所有东西都做了罚款。 如果你阅读,请提供更多文件,说明《欧洲空间法中心法典》的工匠人数限制,因为我看不到任何这方面的内容,我无法用这种一般错误信息来处理这个问题。

问题回答

当我的项目来源面积超过3德国马克时,我就进入了这一问题。 为解决这一问题,我在我的<代码>buildspec.yml文档中增加了以下内容。 www.un.org/Depts/DGACM/index_french.htm

artifacts:
  files:
    -  config/aws/* 

我在守则Build中点名了我的输出工艺品编号Build Artifact,并将此编为《守则》的输入手法,确保配置<代码>。 亚马孙流域委员会的任务定义和<编码> 《大气中的生物勘探守则》( )。





相关问题
Mount windows shared drive to MWAA in bootscript

In MWAA startup script sudo yum install samba-client cifs-utils -y sudo mount.cifs //dev/test/drop /mnt/dev/test-o username=testuser,password= pwd ,domain=XX Executing above commonds giving error - ...

How to get Amazon Seller Central orders programmatically?

We have been manually been keying Amazon orders into our system and would like to automate it. However, I can t seem to figure out how to go about it. Their documentation is barely there. There is: ...

Using a CDN like Amazon S3 to control access to media

I want to use Amazon S3/CloudFront to store flash files. These files must be private as they will be accessed by members. This will be done by storing each file with a link to Amazon using a mysql ...

unable to connect to database on AWS

actually I have my website build with Joomla hosted on hostmonster but all Joomla website need a database support to run this database is on AWS configuration files need to be updated for that I ...

Using EC2 Load Balancing with Existing Wordpress Blog

I currently have a virtual dedicated server through Media Temple that I use to run several high traffic Wordpress blogs. Both tend to receive sudden StumbleUpon traffic surges that (I m assuming) ...

SSL slowness in EC2

We ve deployed our rails app to EC2. In our setup, we have two proxies on small instances behind round-robin DNS. These run nginx load balancers for a dynamically growing and shrinking farm of web ...

热门标签