stale-nail-5578101/23/2023, 10:34 AM
object in Pulumi • I am able to get the arn using
this returns an
• I am not able to attach that value to a lambda function
field expects a String, not the Output<String> we have Am I doing something wrong here?
steep-minister-2889501/24/2023, 11:52 AM
? I wrote this piece of code that compiles (notice
You can also use
var exampleLayerVersion = new LayerVersion("exampleLayerVersion"); var exampleFunction = new Function("exampleFunction", FunctionArgs.builder() .layers(Output.all(exampleLayerVersion.arn())) .build());
if you prefer:
Let me know if that helps. If not, having a code snippet (with import statements) could help me understand your issue better.
stale-nail-5578101/24/2023, 12:09 PM
where a single String can be passed. But to the main point, that does help.
does the trick, thanks!