【问题标题】:AWS Cloudformation RDS EnablePerformanceInsights is not workingAWS Cloudformation RDS EnablePerformanceInsights 不起作用
【发布时间】:2020-12-04 06:57:57
【问题描述】:

我想通过 Clouformation 创建 RDS 实例。下面是 cloudformation 文件的摘录。

  MasterDB:
    Type: AWS::RDS::DBInstance
    Properties:
      DBName: !Ref DBName
      DBInstanceIdentifier: !Ref DBName
      BackupRetentionPeriod: !Ref DBBackupRetentionPeriod
      AllocatedStorage: !Ref DBAllocatedStorage
      DBInstanceClass: "db.t3.medium"
      DBSubnetGroupName: !Ref DBSubnetGroup
      Engine: MySQL
      AvailabilityZone: !Ref DBAvailabilityZone
      EngineVersion: "5.7.30"
      MasterUsername: !Sub "{{resolve:ssm:/DB/USER:1}}"
      MasterUserPassword: !Sub "{{resolve:ssm-secure:/DB/PASSWORD:1}}"
      MultiAZ: !Ref MultiAZ
      EnablePerformanceInsights: 'true'
      DeletionProtection: 'true'
      DBParameterGroupName: !Ref RDSDBParameterGroup

RDS 的创建没有问题,但我注意到新实例上没有启用 Performance Insights 和删除保护。

您能否告知为什么这些选项不起作用?

【问题讨论】:

    标签: amazon-cloudformation amazon-rds


    【解决方案1】:

    我在us-east-1 的沙盒帐户中验证您的模板,并且洞察力和删除保护功能按预期启用

    我使用的模板如下(大部分只是注释掉了您问题中未显示的引用):

    Resources:
      MasterDB:
        Type: AWS::RDS::DBInstance
        Properties:
          #DBName: !Ref DBName
          #DBInstanceIdentifier: !Ref DBName
          BackupRetentionPeriod: 0
          AllocatedStorage: 20
          DBInstanceClass: "db.t3.medium"
          #DBSubnetGroupName: !Ref DBSubnetGroup
          Engine: MySQL
          #AvailabilityZone: !Ref DBAvailabilityZone
          EngineVersion: "5.7.30"
          MasterUsername: root
          MasterUserPassword: fsdf45454
          MultiAZ: false
          EnablePerformanceInsights: 'true'
          DeletionProtection: 'true'
    

    【讨论】:

    • 非常感谢!我是在 us-west-2 地区做的。并查看这些值: Performance Insights enabled No Deletion protection Disabled 询问支持可能会更好。
    猜你喜欢
    • 2017-07-27
    • 2017-11-18
    • 1970-01-01
    • 2021-12-11
    • 2020-12-12
    • 1970-01-01
    • 2020-06-13
    • 2015-08-01
    • 1970-01-01
    相关资源
    最近更新 更多