enough-judge-17725
02/27/2019, 12:05 AMenough-judge-17725
02/27/2019, 12:05 AMenough-judge-17725
02/27/2019, 12:24 AMgentle-diamond-70147
02/27/2019, 12:31 AMgentle-diamond-70147
02/27/2019, 12:31 AMenough-judge-17725
02/27/2019, 12:32 AMenough-judge-17725
02/27/2019, 12:32 AMenough-judge-17725
02/27/2019, 12:32 AMgentle-diamond-70147
02/27/2019, 12:33 AMgentle-diamond-70147
02/27/2019, 12:34 AMgentle-diamond-70147
02/27/2019, 12:34 AMenough-judge-17725
02/27/2019, 12:35 AMenough-judge-17725
02/27/2019, 12:37 AMbusy-daybreak-68237
02/27/2019, 11:15 AMbusy-daybreak-68237
02/27/2019, 11:15 AMbusy-daybreak-68237
02/27/2019, 11:53 AMbusy-daybreak-68237
02/27/2019, 12:13 PMworried-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?thousands-notebook-91098
02/27/2019, 2:45 PMthousands-notebook-91098
02/27/2019, 2:46 PMmy_secret.secret_string
?worried-engineer-33884
02/27/2019, 2:47 PMthousands-notebook-91098
02/27/2019, 2:47 PMthousands-notebook-91098
02/27/2019, 2:47 PMthousands-notebook-91098
02/27/2019, 2:47 PMthousands-notebook-91098
02/27/2019, 2:48 PMworried-engineer-33884
02/27/2019, 2:48 PMthousands-notebook-91098
02/27/2019, 3:20 PMmy_secret = await secretsmanager.get_secret_version(blah)
?thousands-notebook-91098
02/27/2019, 3:20 PMthousands-notebook-91098
02/27/2019, 3:20 PMbitter-island-28909
02/27/2019, 3:34 PMAWS.S3.copyObject
API. The exact same code runs fine locally, and in a lambda that I create in the traditional way. However, when I deploy using Pulumi’s aws.lambda.CallbackFunction
, the copyObject
call never invokes its callback (or delivers its promise, I’ve tried both ways). All the other code in the function seems to run, it’s very strange.
Is there any chance that Pulumi is transforming the AWS API itself a bit too aggressively? I notice that my call to require('aws-sdk')
is replaced by require("aws-sdk/lib/aws.js")
after Pulumi does its magic.