We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9482482 commit 7f56d1bCopy full SHA for 7f56d1b
SecretsManagerRDSDb2RotationSingleUser/lambda_function.py
@@ -1,5 +1,6 @@
1
# Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.
2
# SPDX-License-Identifier: MIT-0
3
+import time
4
5
import boto3
6
import json
@@ -76,6 +77,9 @@ def lambda_handler(event, context):
76
77
78
elif step == "setSecret":
79
set_secret(service_client, arn, token)
80
+ # Wait for 10s to allow propagation of the newly set AWSPENDING password as the user password in the database.
81
+ # The database user password change is asynchronous.
82
+ time.sleep(10)
83
84
elif step == "testSecret":
85
test_secret(service_client, arn, token)
0 commit comments