This message was deleted.
# general
s
This message was deleted.
w
If you read the value out into a variable first and then reference that variable, you should not need to pull in the pulumi package.
Copy code
const config = new pulumi.Config();
  const message = config.require("message");
  const b = new aws.s3.Bucket("b");
  b.onObjectCreated("n", async (ev, ctx) => {
      console.log(message)
  });
s
cool, thanks!
Actually I'm making my Function code in a separate handler file (so I can use Node 10), so I'm getting
pulumi is not defined
error on that function.