worried-engineer-33884
02/27/2019, 2:43 PMfrom pulumi_aws import secretsmanager
my_secret = secretsmanager.get_secret_version(secret_id="my-secret")
In aws terraform, I would normally be able to access the attribute secret_string
on this data source. how do i access that here so that i can use it as an input to another resource and/or log it to console so that i can inspect the value and see that things are working as i expect?brainy-magician-83981
02/27/2019, 4:24 PMworried-engineer-33884
02/27/2019, 4:50 PMmy_secret.secret_string
results in:
AttributeError: 'coroutine' object has no attribute 'secret_string'