0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

[AWS Q&A 365][SecretManager]Daily Five Common Questions #31

Posted at

1. What is the process of rotating secrets in AWS Secrets Manager?

Answer: Rotating secrets in AWS Secrets Manager involves creating a rotation function, setting up network access for the function, configuring the secret for rotation, and creating an execution role for the rotation function. Depending on the type of secret, a superuser secret may also need to be created. Once the rotation function is set up, the secret will automatically rotate according to the rotation strategy defined.

2. Can secrets be rotated immediately in AWS Secrets Manager?

Answer: Yes, secrets can be rotated immediately in AWS Secrets Manager using the AWS CLI. The command "aws secretsmanager rotate-secret --secret-id MyTestDatabaseSecret" can be used to initiate an immediate rotation of the specified secret.

3. How can I troubleshoot issues with rotating secrets in AWS Secrets Manager?

Answer: Common issues with rotating secrets in AWS Secrets Manager include problems with network access, missing or incorrect permissions, and issues with the rotation function code. To troubleshoot these issues, it is recommended to check the CloudTrail logs, review the rotation function code, and verify the permissions and network access settings.

4. What types of secrets can be rotated automatically in AWS Secrets Manager?

Answer: AWS Secrets Manager supports automatic rotation for a variety of secrets, including database credentials, Amazon DocumentDB credentials, and Amazon Redshift credentials. The specific rotation strategy and settings may vary depending on the type of secret.

5. Can CloudWatch be used to monitor secrets scheduled for deletion in AWS Secrets Manager?

Answer: Yes, CloudWatch can be used to monitor secrets scheduled for deletion in AWS Secrets Manager. This involves configuring CloudTrail log file delivery to CloudWatch logs, creating a CloudWatch alarm to monitor deletion events, and testing the alarm to ensure it is working correctly.

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?