Skip to content
This repository has been archived by the owner on Dec 20, 2023. It is now read-only.

Redshift, ElasticCache and Dax subnets are created even when not requested #483

Closed
PetroccoCo opened this issue Dec 24, 2020 · 2 comments · Fixed by #504
Closed

Redshift, ElasticCache and Dax subnets are created even when not requested #483

PetroccoCo opened this issue Dec 24, 2020 · 2 comments · Fixed by #504
Assignees

Comments

@PetroccoCo
Copy link

PetroccoCo commented Dec 24, 2020

Seems to be a near identical error to ##382
Attempting to setup a super basic VPC just an elastic ip, public and app subnets. No db subnet nor Redshift, ElasticCache and Dax subnets getting an error message about RedshiftSubnetGroup.

Error: The CloudFormation template is invalid: Unresolved resource dependencies [RedshiftSubnetGroup] in the Outputs block of the template

vpcConfig:
    cidrBlock: '10.0.0.0/16'
    createNatGateway: 1
    createNetworkAcl: true
    createDbSubnet: false
    createParameters: true
    exportOutputs: true

The cloudformation-template-update-stack.json mentions all three subnet groups RedshiftSubnetGroup, ElastiCacheSubnetGroup, DAXSubnetGroup:

    "RedshiftSubnetGroup": {
      "Description": "Subnet Group for redshift",
      "Value": {
        "Ref": "RedshiftSubnetGroup"
      },
      "Export": {
        "Name": {
          "Fn::Sub": "${AWS::StackName}-RedshiftSubnetGroup"
        }
      }
    },
    "ElastiCacheSubnetGroup": {
      "Description": "Subnet Group for elasticache",
      "Value": {
        "Ref": "ElastiCacheSubnetGroup"
      },
      "Export": {
        "Name": {
          "Fn::Sub": "${AWS::StackName}-ElastiCacheSubnetGroup"
        }
      }
    },
    "DAXSubnetGroup": {
      "Description": "Subnet Group for dax",
      "Value": {
        "Ref": "DAXSubnetGroup"
      },
      "Export": {
        "Name": {
          "Fn::Sub": "${AWS::StackName}-DAXSubnetGroup"
        }
      }
    },
@PetroccoCo PetroccoCo changed the title Redshift, ElasticCache and Dax subnets are created when createDbSubnet is false Redshift, ElasticCache and Dax subnets are created even when not requested Dec 24, 2020
@jplock
Copy link
Member

jplock commented Dec 24, 2020

Are the subnet groups in the resources or just the outputs?

@jplock jplock self-assigned this Dec 24, 2020
@andrey-sushenkov
Copy link

andrey-sushenkov commented Dec 30, 2020

vpcConfig:
  cidrBlock: '10.0.0.0/16'
  createDbSubnet: false
  createNatGateway: 1
  exportOutputs: true

seems familiar

Error: The CloudFormation template is invalid: Unresolved resource dependencies [RedshiftSubnetGroup] in the Outputs block of the template

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
3 participants