我使用Codestar部署springboot项目,在Deploy的时候,使用template.yml创建EBEnvironment失败

0

在此处输入图片描述 Resource handler returned message: "Resource of type 'AWS::ElasticBeanstalk::Environment' with identifier 'cs-esp-deliveryapp' did not stabilize." (RequestToken: 5eb39b20-59b7-eada-097f-35e6ffe002e2, HandlerErrorCode: NotStabilized) 这是我的template模板 AWSTemplateFormatVersion: 2010-09-09 Transform:

  • AWS::CodeStar

Conditions: UseSubnet: !Not [!Equals [!Ref "SubnetId", subnet-none]]

Parameters: ProjectId: Type: String InstanceType: Type: String KeyPairName: Type: String VpcId: Type: String SubnetId: Type: String SolutionStackName: Type: String EBTrustRole: Type: String EBInstanceProfile: Type: String Stage: Type: String Default: "" Resources: EBApplication: Type: AWS::ElasticBeanstalk::Application Properties: ApplicationName: !Sub "${ProjectId}app${Stage}" EBApplicationVersion: Type: AWS::ElasticBeanstalk::ApplicationVersion Properties: ApplicationName: !Ref "EBApplication" Description: The application version number. SourceBundle: "target/ROOT" EBConfigurationTemplate: Type: AWS::ElasticBeanstalk::ConfigurationTemplate Properties: ApplicationName: !Ref "EBApplication" OptionSettings: - Namespace: aws:elasticbeanstalk:environment OptionName: EnvironmentType Value: SingleInstance - Namespace: aws:elasticbeanstalk:environment OptionName: ServiceRole Value: !Ref "EBTrustRole" - Namespace: aws:elasticbeanstalk:healthreporting:system OptionName: SystemType Value: enhanced - Namespace: aws:elasticbeanstalk:application:environment OptionName: PROJECT_ID Value: "$PROJECT_ID$" SolutionStackName: !Ref "SolutionStackName" EBEnvironment: Type: AWS::ElasticBeanstalk::Environment Properties: ApplicationName: !Ref "EBApplication" EnvironmentName: !Ref "EBApplication" TemplateName: !Ref "EBConfigurationTemplate" VersionLabel: !Ref "EBApplicationVersion" OptionSettings: - Namespace: aws:autoscaling:launchconfiguration OptionName: IamInstanceProfile Value: !Ref "EBInstanceProfile" - Namespace: aws:autoscaling:launchconfiguration OptionName: InstanceType Value: !Ref "InstanceType" - Namespace: aws:autoscaling:launchconfiguration OptionName: EC2KeyName Value: !Ref "KeyPairName" - Namespace: aws:autoscaling:launchconfiguration OptionName: DisableIMDSv1 Value: "true" - Namespace: aws:ec2:vpc OptionName: VPCId Value: !Ref "VpcId" - !If - UseSubnet - Namespace: "aws:ec2:vpc" OptionName: Subnets Value: !Ref "SubnetId" - !Ref "AWS::NoValue"

Keine Antworten

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen