Can we answer the simple question(s) I asked about...
# aws
m
Can we answer the simple question(s) I asked about AWS Parameter store and Pulumi?
h
@many-monkey-57230 Here is sample code that i use to reterive secret from AWS, which use customer managed key Refer https://www.google.com/search?client=safari&rls=en&q=aws+secret+manager+pulumi&ie=UTF-8&oe=UTF-8
Copy code
def get_secret(secret_name):
    """_summary_

    :param secret_name: _description_
    :type secret_name: _type_
    """
    try:
        secrets = aws.secretsmanager.get_secret_version(
            secret_id=secret_name
        ).secret_string
    except ValueError as error:
        log.error("Error while reteriving secret from the AWS sceret manager")
        raise error
    return json.loads(secrets)