Amazon web services – AWS Secret Manager `ParamValidationError`: `"SecretID", must be one of: SecretId, VersionId, VersionStage`
I am having a problem with accessing a secret from Secret Manager in a lambda function. Here is the relevant code: import boto3 session = boto3.session.Session() secretsmanager = session.client(service_name="secretsmanager") get_secret_value_response = secretsmanager.get_secret_value( SecretID="arn:aws:secretsmanager:SECRETNAME" ) secret = get_secret_value_response["SecretString"] The error message,…