AWS Code Pipeline выходит из строя после добавления RDS в Elasti c Beanstalk - PullRequest
0 голосов
/ 06 мая 2020

У меня есть среда EBS / Tomcat / Java, созданная с использованием шаблона CodeStar в январе 2020 года. Недавно я добавил RDS в консоль EBS, следуя этим инструкциям для создания dev DB в EBS.

С момента добавления RDS мой CodePipeline не работает на этапе CloudFormation с ошибкой

Неудачное обновление среды. Причина: Исключение проверки конфигурации: Отсутствует значение для обязательного параметра: AWSEBDBPassword

на моей панели управления EBS под недавними событиями.

Кажется, отсутствует пароль базы данных или разрешения, но я ' Я не знаю, как это установить.

Если это поможет, вот мой файл шаблона конвейера CodeStar:

AWSTemplateFormatVersion: 2010-09-09
    Transform:
    - AWS::CodeStar
    Conditions:
      UseSubnet:
        Fn::Not:
        - Fn::Equals:
          - Ref: SubnetId
          - subnet-none
    Parameters:
      ProjectId:
        Type: String
        Description: AWS CodeStar project ID used to name project resources and create
          roles.
      InstanceType:
        Type: String
        Description: The type of Amazon EC2 Linux instances that will be launched for
          this project.
      KeyPairName:
        Type: String
        Description: The name of an existing Amazon EC2 key pair in the region where the
          project is created, which you can use to SSH into the new Amazon EC2 Linux instances.
      VpcId:
        Type: String
        Description: The ID of the Amazon Virtual Private Cloud (VPC) used for the new
          Amazon EC2 Linux instances.
      SubnetId:
        Type: String
        Description: The name of the VPC subnet used for the new Amazon EC2 Linux instances
          launched for this project.
      SolutionStackName:
        Type: String
        Description: The software stack used to launch environments and configure instances
          in AWS Elastic Beanstalk.
      EBTrustRole:
        Type: String
        Description: The service role in IAM for AWS Elastic Beanstalk to be created for
          this project.
      EBInstanceProfile:
        Type: String
        Description: The IAM role that will be created for the Amazon EC2 Linux instances.
      Stage:
        Type: String
        Description: The name for a project pipeline stage, such as Staging or Prod, for
          which resources are provisioned and deployed.
        Default: ''
    Resources:
      EBApplication:
        Description: The AWS Elastic Beanstalk application, which is a container used
          to deploy the correct application configuration.
        Type: AWS::ElasticBeanstalk::Application
        Properties:
          ApplicationName:
            Fn::Sub: ${ProjectId}app${Stage}
          Description: The name of the AWS Elastic Beanstalk application to be created
            for this project.
      EBApplicationVersion:
        Description: The version of the AWS Elastic Beanstalk application to be created
          for this project.
        Type: AWS::ElasticBeanstalk::ApplicationVersion
        Properties:
          ApplicationName:
            Ref: EBApplication
          Description: The application version number.
          SourceBundle:
            S3Bucket: aws-codestar-us-west-2-215674088663-aa5050solnprj3-pipe
            S3Key: 810d567534b4cb9ca0ee597128a22b94
      EBConfigurationTemplate:
        Description: The AWS Elastic Beanstalk configuration template to be created for
          this project, which defines configuration settings used to deploy different
          versions of an application.
        Type: AWS::ElasticBeanstalk::ConfigurationTemplate
        Properties:
          ApplicationName:
            Ref: EBApplication
          Description: The name of the sample configuration template.
          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
          SolutionStackName:
            Ref: SolutionStackName
      EBEnvironment:
        Description: The AWS Elastic Beanstalk deployment group where the application
          is deployed, which is made up of the Amazon EC2 Linux instances launched for
          this project.
        Type: AWS::ElasticBeanstalk::Environment
        Properties:
          ApplicationName:
            Ref: EBApplication
          EnvironmentName:
            Ref: EBApplication
          Description: The application to be deployed to the environment.
          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:ec2:vpc
            OptionName: VPCId
            Value:
              Ref: VpcId
          - Fn::If:
            - UseSubnet
            - Namespace: aws:ec2:vpc
              OptionName: Subnets
              Value:
                Ref: SubnetId
            - Ref: AWS::NoValue```

...