
前提
Cloudformationで一度AuroraDBのClusterを作成しました。
その後MasterUsernameとMasterUserPasswordを変更する必要がありましたので、rootからtestadminという名前に変更し、再度CloudformationでスタックをUpdateしました。
しかし以下のコマンドで確認したところ、MasterUsernameが変更をかける前の名前(root)のままでした。
$ aws rds describe-db-instances
CloudformationでMasterUsernameとMasterUserPasswordを変更する場合、Cfnで内容を書き換えてスタックのアップデート以外になにか作業が必要になるでしょうか。
実現したいこと
Cloudformationで作成したAuroraDBの、
MasterUsername と MasterUserPassword をCloudformationで更新したい
発生している問題・エラーメッセージ
MasterUsername と MasterUserPasswordが更新されていない
該当のソースコード
cloudformation
1 DBCluster: 2 Type: AWS::RDS::DBCluster 3 Properties: 4 DBClusterIdentifier: rds 5 DatabaseName: db 6 DBSubnetGroupName: !Ref DBSubnetGroupName 7 DBClusterParameterGroupName: !Ref DBClusterParameterGroupName 8 Engine: aurora-mysql 9 EngineVersion: 8.0.mysql_aurora.3.02.0 10 VpcSecurityGroupIds: [{'Fn::ImportValue': !Join [ "-", [ "Ref":"EnvironmentName" , "SG"]]}] 11 StorageEncrypted: true 12 DeletionProtection: true 13 MasterUsername: testadmin 14 MasterUserPassword: testadmin 15 EnableCloudwatchLogsExports: [audit, error, general, slowquery] 16 PreferredBackupWindow: "21:00-21:30" 17 PreferredMaintenanceWindow: "sun:18:00-sun:18:30"
試したこと
MasterUsernameとMasterUserPasswordを変更し、Cloudformationでアップデートを掛けた。 アップデート自体は成功しているが、中身が変わっていない。
回答1件
あなたの回答
tips
プレビュー