{"id":6140,"date":"2019-07-16T01:55:09","date_gmt":"2019-07-16T01:55:09","guid":{"rendered":"http:\/\/www.garysieling.com\/blog\/?p=6140"},"modified":"2020-03-30T02:39:13","modified_gmt":"2020-03-30T02:39:13","slug":"fixing-error-subnet-group-name-can-not-be-blank","status":"publish","type":"post","link":"https:\/\/www.garysieling.com\/blog\/fixing-error-subnet-group-name-can-not-be-blank\/","title":{"rendered":"Fixing error: &#8220;Subnet group name can not be blank.&#8221;"},"content":{"rendered":"<p>You may get the following error:<\/p>\n<pre>Subnet group name can not be blank. (Service: AmazonRDS; Status Code: 400; Error Code: InvalidParameterValue; Request ID: f29c7cbf-8879-420\n<\/pre>\n<p>Despite the error, the requested property is called DBSubnetGroupName. To fix this, you&#8217;ll need to set the property in question, which may require updating your VPC as well.<\/p>\n<pre lang=\"yaml\">  VideoPlayerVPC:\n    Type: \"AWS::EC2::VPC\"\n    Properties:\n      CidrBlock: \"192.168.0.0\/16\"\n\n  SubnetAZ1:\n    Type: \"AWS::EC2::Subnet\"\n    Properties:\n      CidrBlock: \"192.168.0.0\/17\"\n      VpcId: !Ref VideoPlayerVPC\n      AvailabilityZone: \"us-east-1a\"\n\n  SubnetAZ2:\n    Type: \"AWS::EC2::Subnet\"\n    Properties:\n      CidrBlock: \"192.168.128.0\/17\"\n      VpcId: !Ref VideoPlayerVPC\n      AvailabilityZone: \"us-east-1b\"\n\n  DatabaseSecurityGroup:\n    Type: \"AWS::EC2::SecurityGroup\"\n    Properties:\n      GroupDescription: \"Video Collection Database Security Group\"\n      VpcId: !Ref VideoPlayerVPC\n\n  DatabaseSubnetGroup:\n    Type: \"AWS::RDS::DBSubnetGroup\"\n    Properties:\n      DBSubnetGroupDescription: \"Subnet for the database\"\n      SubnetIds:\n        - !Ref SubnetAZ1\n        - !Ref SubnetAZ2\n\n  Database:\n    Type: \"AWS::RDS::DBCluster\"\n    Properties:\n      Engine: \"aurora-postgresql\"\n      EngineMode: \"serverless\"\n      MasterUserPassword: !Ref DatabasePassword\n      MasterUsername: \"videoplayer\"\n      DBSubnetGroupName: !Ref DatabaseSubnetGroup\n      VpcSecurityGroupIds:\n        - !Ref DatabaseSecurityGroup\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Fixing a cloudformation error: Subnet group name can not be blank. (Service: AmazonRDS; Status Code: 400; Error Code: InvalidParameterValue; Request ID: f29c7cbf-8879-420<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[8,9],"tags":[71,454,579],"aioseo_notices":[],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/posts\/6140"}],"collection":[{"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/comments?post=6140"}],"version-history":[{"count":1,"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/posts\/6140\/revisions"}],"predecessor-version":[{"id":6453,"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/posts\/6140\/revisions\/6453"}],"wp:attachment":[{"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/media?parent=6140"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/categories?post=6140"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/tags?post=6140"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}