{"id":6137,"date":"2019-07-16T01:41:26","date_gmt":"2019-07-16T01:41:26","guid":{"rendered":"http:\/\/www.garysieling.com\/blog\/?p=6137"},"modified":"2020-03-30T02:39:24","modified_gmt":"2020-03-30T02:39:24","slug":"fix-error-exactly-one-of-snapshotidentifier-and-masterusername-must-be-specified","status":"publish","type":"post","link":"https:\/\/www.garysieling.com\/blog\/fix-error-exactly-one-of-snapshotidentifier-and-masterusername-must-be-specified\/","title":{"rendered":"Fix error: &#8220;Exactly one of SnapshotIdentifier and MasterUsername must be specified&#8221;"},"content":{"rendered":"<p>With Cloudformation you can get the following error:<\/p>\n<pre>Exactly one of SnapshotIdentifier and MasterUsername must be specified\n<\/pre>\n<p>You can fix this by specifying one of these values &#8211; most likely MasterUsername if you&#8217;re here. I think the reason for this is that the backups (snapshots) include (imply) the username.<\/p>\n<p>I.e. this won&#8217;t work:<\/p>\n<pre lang=\"yaml\">  Database:\n    Type: \"AWS::RDS::DBCluster\"\n    Properties:\n      Engine: \"aurora-postgresql\"\n      EngineMode: \"serverless\"\n      MasterUserPassword: !Ref DatabasePassword\n      VpcSecurityGroupIds:\n        - !Ref DatabaseSecurityGroup\n<\/pre>\n<p>Do this instead:<\/p>\n<pre lang=\"yaml\">  Database:\n    Type: \"AWS::RDS::DBCluster\"\n    Properties:\n      Engine: \"aurora-postgresql\"\n      EngineMode: \"serverless\"\n      MasterUserPassword: !Ref DatabasePassword\n      MasterUsername: \"admin\"\n      VpcSecurityGroupIds:\n        - !Ref DatabaseSecurityGroup\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Fixing an AWS error<\/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":[69,71,437,454],"aioseo_notices":[],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/posts\/6137"}],"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=6137"}],"version-history":[{"count":1,"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/posts\/6137\/revisions"}],"predecessor-version":[{"id":6454,"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/posts\/6137\/revisions\/6454"}],"wp:attachment":[{"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/media?parent=6137"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/categories?post=6137"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/tags?post=6137"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}