question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

(aws-docdb): password rotation should work

See original GitHub issue

What is the problem?

aws_docdb.DatabaseCluster.addRotationSingleUser() secret rotator fails

Reproduction Steps

    const cluster = new aws_docdb.DatabaseCluster(this, 'Database', { ... });
    cluster.addRotationSingleUser();

Go to SecretsManager, find the associated secret and click the “Rotate secret immediately”. Note error message with “A previous rotation isn’t complete.”

What did you expect to happen?

Secret rotation should succeed.

What actually happened?

Fail to rotate the secret “… secret name …”

CDK CLI Version

2.0.0-rc.24

Framework Version

2.0.0-rc.24

Node.js Version

v14.17.5

OS

MacOS

Language

Typescript

Language Version

4.4.3

Other information

No response

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
skinny85commented, Nov 3, 2021

@ahammond can you share your CDK code?

I wonder if this is similar to https://github.com/aws/aws-cdk/issues/17265 for RDS.

0reactions
jogoldcommented, Jan 10, 2022

@jogold do you think we need to do the same for DocumentDB as you did for RDS in #17363?

Yes it looks like it (sorry for the late reply).

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to rotate Amazon DocumentDB and Amazon Redshift ...
Secrets Manager natively supports rotating secrets for all Amazon database ... and Amazon Redshift — that require a user name and password.
Read more >
Password rotation on AWS DocumentDB - Stack Overflow
When setting up a new DocumentDB cluster (using CF templates), it requires a master username and password. What would be the best approach...
Read more >
Rotating the password in AWS Secrets Manager
You can configure Secrets Manager to automatically rotate the secret (password) for your Amazon DocumentDB cluster. When automatic rotation is selected, ...
Read more >
Amazon DocumentDB and AWS Secrets Manager Integration
In this video, you will learn how to leverage AWS secrets manager to store and rotate credentials for Amazon DocumentDB.
Read more >
Create an Amazon Secrets Manager secret with automatic ...
This example creates a secret and an Amazon DocumentDB instance using the credentials in the ... The template also creates a Lambda rotation...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found