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.

답변 없음

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠