User7723337
User7723337

Reputation: 12018

AWS SecretManager Read and Write concurrency

AWS SecretManager Read and Write concurrency.

If I am writing new secret value to a secret and if at the same time read is performed,
does the read call waits for he write calls to complete?

Or read will retrieve some invalid or intermediate value of the keys stored inside the secret?

Upvotes: 0

Views: 470

Answers (1)

Maurice
Maurice

Reputation: 13187

By default, the GetSecretValue API returns the version of the secret that has the AWSCURRENT stage. It also allows you to fetch older versions of a secret by specifying the VersionId. Versions are also immutable and if you call PutSecretValue you create a new version.

You won't get partial versions here - the label AWSCURRENT will only be switched to the new version once the update is complete. Everything else would result in a terrible user experience.

Upvotes: 1

Related Questions