【问题标题】:Cloudformation Elasticache: "cannot be specified along with CacheSecurityGroupNames"Cloudformation Elasticache:“不能与 CacheSecurityGroupNames 一起指定”
【发布时间】:2022-01-02 12:19:54
【问题描述】:

错误:

属性 [AZMode, CacheSubnetGroupName, SecurityGroupIds, PreferredAvailabilityZones, SnapshotArns, SnapshotRetentionLimit, SnapshotWindow, Tags] 不能与 CacheSecurityGroupNames 一起指定,请将您的模板更新到最新版本

Type: AWS::ElastiCache::CacheCluster
    Properties:
      Engine: redis
      AZMode: single-az
      EngineVersion: 5.0.6
      CacheParameterGroupName: !Ref CacheParameterGroup
      ClusterName: !Sub ${SystemName}-${Env}-elasticache
      CacheNodeType: !Ref ElasticacheNodeType
      NumCacheNodes: "1"
      Port: 6379
      PreferredMaintenanceWindow: !Ref MaintenanceWindow
      PreferredAvailabilityZone: ap-northeast-1a
      SnapshotRetentionLimit: !Ref SnapshotRetentionLimit
      SnapshotWindow: !Ref SnapshotWindow
      CacheSubnetGroupName: !Ref CacheSubnetGroup
      CacheSecurityGroupNames:
        - Fn::ImportValue: DevElasticacheSG

cloudformation出现上述错误的原因是什么?

【问题讨论】:

    标签: amazon-web-services yaml amazon-cloudformation amazon-elasticache


    【解决方案1】:

    CacheSecurityGroupNames 只能在您的集群不在 VPC 中时使用:

    仅当您在 Amazon Virtual Private Cloud 之外创建集群时使用此参数 (Amazon VPC)。

    我的猜测是你可能想改用VpcSecurityGroupIds

    【讨论】:

      猜你喜欢
      • 2020-10-01
      • 2015-07-15
      • 2017-01-15
      • 2018-04-04
      • 2022-01-26
      • 2018-05-06
      • 2020-09-05
      • 2015-12-08
      • 2015-06-05
      相关资源
      最近更新 更多