awscli elasticbeanstalk create-application-version failing

0

Following the instructions here: https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/environment-mgmt-compose.html. I am trying to create my application version. My env.yaml file looks like

EnvironmentName: webapp+
EnvironmentLinks:
  "PARSE_HOST" : "server+"
AWSConfigurationTemplateVersion: 1.1.0.0
EnvironmentTier: 
  Name: WebServer
  Type: Standard
SolutionStack: Node.js 18 running on 64bit Amazon Linux 2023/6.0.0

I execute the create-application-version command and I get a response that looks like

{
    "ApplicationVersion": {
        "ApplicationVersionArn": "arn:aws:elasticbeanstalk:us-east-1:785468206857:applicationversion/MyApp/my-ap
p-v1",
        "ApplicationName": "MyApp",
        "VersionLabel": "my-app-v1",
        "SourceBundle": {
            "S3Bucket": "myapp",
            "S3Key": "myapp-dev-src-bundles/myapp-app-dev.zip"
        },
        "DateCreated": "2023-09-09T16:03:26.782000+00:00",
        "DateUpdated": "2023-09-09T16:03:26.782000+00:00",
        "Status": "PROCESSING"
    }
}

And my application version shows up in the console. Then I query the version to make sure it is done using aws elasticbeanstalk describe-application-versions --application-name MyApp I get the following response:

{
    "ApplicationVersions": [
        {
            "ApplicationVersionArn": "arn:aws:elasticbeanstalk:us-east-1:785468206857:applicationversion/MyApp/myapp-app-v1",
            "ApplicationName": "MyApp",
            "VersionLabel": myapp-app-v1",
            "SourceBundle": {
                "S3Bucket": "myapp",
                "S3Key": "myapp-dev-src-bundles/myapp-app-dev.zip"
            },
            "DateCreated": "2023-09-09T16:03:26.782000+00:00",
            "DateUpdated": "2023-09-09T16:03:26.782000+00:00",
            "Status": "FAILED"
        }
    ]
}

How do I find out why it is failing?

  • I ran with the EB CLI and I got the equally unhelpful message

    ERROR: Pre-processing of application version app-230909_174857623252 has failed.
    Finished processing application version app-230909_174859622827
    ERROR: Some application versions failed to process. Unable to continue deployment.
    
  • The solution stack was causing a problem. I removed it from the env.yaml and used eb platform select to set the platfrom correctly. That allowed me to deploy one of my modules but not this one. I tried removing the links as that is the only difference between the one that works and this one, but that did not solve the problem.

ewood
已提问 8 个月前101 查看次数
没有答案

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则