aws-secrets-manager-rotation-lambdas
aws-secrets-manager-rotation-lambdas copied to clipboard
Contains Lambda functions to be used for automatic rotation of secrets stored in AWS Secrets Manager
As we have https://github.com/aws-samples/aws-secrets-manager-rotation-lambdas/blob/master/SecretsManagerRDSOracleRotationMultiUser/lambda_function.py#L196, for grant_type in ['ROLE_GRANT', 'SYSTEM_GRANT', 'OBJECT_GRANT']: try: cur.execute("SELECT DBMS_METADATA.GET_GRANTED_DDL('%s', '%s') FROM DUAL" % (grant_type, current_dict['username'].upper())) results = cur.fetchall() for row in results: sql = row[0].read().strip(' \n\t').replace("\"%s\""...
It would be great if the Cloudformation templates for these functions would output the ARN of the role that was created for inclusion in resource policies on the secrets. Right...
*Issue #, if available:* n/a *Description of changes:* When a RDS PostgreSQL instance is configured with [restricted password management](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Appendix.PostgreSQL.CommonDBATasks.html#Appendix.PostgreSQL.CommonDBATasks.RestrictPasswordMgmt), only users member of `rds_password` role are allowed to change passwords....
*Description of changes:* This stems from an AWS support issue #6724293101 where there's no current provided lambda function for IAM accesskey/secretkey credential rotation. I have several IAM credentials in need...
I tried using SecretsManagerRDSMySQLRotationSingleUser application to create a lambda function in the AWS console but it looks like this application tries to create a role SecretsManagerRDSMySQLRotationSingleUserRole internally. My company doesn't...
The [`finish_secret`](https://github.com/aws-samples/aws-secrets-manager-rotation-lambdas/blob/master/SecretsManagerRotationTemplate/lambda_function.py#L162) function has a bug in it if there is not a version found that is labeled as "AWSCURRENT". If there is not a version found that is labeled...
*Issue #, if available:* *Description of changes:* Exclude the internal schema pg_automv By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under...
Hi, My team is attempting to use the mysql multi user rotation script and running into a permissions issue. The first rotation runs successfully and creates the *_clone user and...
Based on the documentation, [Oracle RDS Secrets rotation for SSL](https://docs.aws.amazon.com/secretsmanager/latest/userguide/rotate-secrets_turn-on-for-db.html#rotate-secrets_turn-on-for-db_step2) is not supported. I am testing with Oracle NNE (with endpoints for both Secrets Manager and RDS) and getting the...
*Issue #, if available:* *Description of changes:* Added another example of rotation lambda for external API keys. Wanting to publish here so I can reference this in my upcoming blog...