What is the MOST secure way to pass these credentials to the Lambda function?

1 Comment

  1. Sara
    Author

    Based on what I know, the answer is:
    Use CloudFormation to create an AWS Secrets Manager secret. Use a CloudFormation dynamic reference to retrieve the secret’s value for the OpenSearch Service domain’s MasterUserOptions. Create an IAM role that has the secretsmanager:GetSecretValue permission. Assign the role to the Lambda function. Store the secret’s name as the Lambda function’s environment variable. Resolve the secret’s value at runtime.

Leave a Reply

Your email address will not be published. Required fields are marked *

four − 2 =