#15074 - Force AWS Secrets Manager deletion (#15327)

This commit is contained in:
Pere Miquel Brull 2024-02-27 09:30:39 +01:00 committed by GitHub
parent 10f9fe82a6
commit b13a50ac68
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -86,7 +86,7 @@ public class AWSSecretsManager extends AWSBasedSecretsManager {
@Override
protected void deleteSecretInternal(String secretName) {
DeleteSecretRequest deleteSecretRequest =
DeleteSecretRequest.builder().secretId(secretName).build();
DeleteSecretRequest.builder().secretId(secretName).forceDeleteWithoutRecovery(true).build();
this.secretsClient.deleteSecret(deleteSecretRequest);
}