This question is about the rotation of AWS secrets manager. When creating a secret, you could choose rotation frequency, but I can't figure out how rotation works.
Imagine a scenario like the following.
You create a secret
A1
in aws secret manager, and specify the rotation frequency is 30 days.You encrypt the data with
A1
.30 days later,
A1
has been rotated to beA2
.then, you program retrieves AWS secret manager and got the value of
A2
. How do you decrypt the data that has been encrypted withA1
?