AWS::RDS::DBProxyTargetGroup 不可用

问题描述 投票:0回答:1

我编写了一个包含 RDS 数据库、代理和目标组的堆栈,但在部署它时似乎遇到了一个奇怪的问题。打开 rdsproxy 时,它表示目标组部分中的数据库不可用。如果我然后在 rds 代理(aws GUI)中按“操作”->“修改”(在此视图中我不触摸任何内容),我只需单击页面末尾的“修改”。重新加载后,它显示可用并且一切正常。

这是cloudformation代码,这是一个错误还是我弄乱了一些东西?

  rDBProxy:
    DependsOn:
      - rRDSDBInstance
      - rDBProxyRole
    Type: AWS::RDS::DBProxy
    Properties:
      DBProxyName: MyDBProxy
      EngineFamily: POSTGRESQL
      RequireTLS: false
      RoleArn: !GetAtt rDBProxyRole.Arn
      Auth:
        - AuthScheme: "SECRETS"
          ClientPasswordAuthType: "POSTGRES_MD5"
          IAMAuth: "DISABLED"
          SecretArn: !Sub "${rPostgreSQLSecret}"
      VpcSecurityGroupIds:
        - Ref: pRDSDBProxySecurityGroup
      VpcSubnetIds:
        - Ref: pPrivateSubnet1
        - Ref: pPrivateSubnet2

  rTargetGroupRDS:
    DependsOn:
      - rDBProxy
    Type: AWS::RDS::DBProxyTargetGroup
    Properties: 
      DBInstanceIdentifiers:
        - !Ref rRDSDBInstance
      DBProxyName: !Ref rDBProxy
      TargetGroupName: default

amazon-web-services aws-cloudformation amazon-rds
1个回答
0
投票

事实证明这不是问题。随着时间的推移,一切都已启动并运行,只需要一点额外的时间。

© www.soinside.com 2019 - 2024. All rights reserved.