by shigemk2

当面は技術的なことしか書かない

awscli secretsmanager delete-secret

Deletes a secret and all of its versions. You can specify a recovery window during which you can restore the secret. The minimum recovery window is 7 days. The default recovery window is 30 days. Secrets Manager attaches a DeletionDate stamp to the secret that specifies the end of the recovery window. At the end of the recovery window, Secrets Manager deletes the secret permanently.

secret managerを削除してもリカバリ期間が30日デフォルトで用意されているので、本当に今すぐ消したいならforce-delete-without-recoveryオプションを使う。

docs.aws.amazon.com