Channels
esc
welcome
pulumi-cdk
cloudengineering
yaml
blog-posts
localstack
pulumi-ai
package-authoring
policy-as-code
pulumiup-booth-support
oracle-cloud-infrastructure
learn-pulumi-events
linen
registry
built-with-pulumi
pulumi-cloud
contribex
testingtesting321
hacktoberfest
pulumi-crosscode
content-share
finops
multi-language-hackathon
office-hours
workshops
gitlab
general
pulumi-kubernetes-operator
jobs
pulumi-deployments
dotnet
aws
golang
announcements
java
pulumiverse
python
install
getting-started
cloudengineering-support
testingtesting123
hackathon-03-19-2020
typescript
google-cloud
contribute
azure
kubernetes
docs
automation-api
status
Powered by
#aws
Title
# aws
s
stocky-magazine-78486
08/20/2021, 1:18 AM
Hi, Is there a way to set Environment variables on Lambda functions, directly while deploying through Pulumi? I saw this but can someone please help me with a small code-snippet of how to use it. Thanks!
https://www.pulumi.com/docs/reference/pkg/aws/lambda/function/#functionenvironment
p
proud-art-41399
08/20/2021, 5:45 AM
Check out these official examples for Python (
https://github.com/pulumi/examples/blob/3e17b86cb97e003935afadb865479eface23968c/aws-py-serverless-raw/__main__.py#L73
) and TypeScript (
https://github.com/pulumi/examples/blob/3e17b86cb97e003935afadb865479eface23968c/aws-ts-serverless-raw/index.ts#L56
).
👍 2
Post