Channels
announcements
automation-api
aws
azure
blog-posts
built-with-pulumi
cloudengineering
cloudengineering-support
content-share
contribex
contribute
docs
dotnet
finops
general
getting-started
gitlab
golang
google-cloud
hackathon-03-19-2020
hacktoberfest
install
java
jobs
kubernetes
learn-pulumi-events
linen
localstack
multi-language-hackathon
office-hours
oracle-cloud-infrastructure
package-authoring
pulumi-ai
pulumi-cdk
pulumi-cloud
pulumi-crosscode
pulumi-deployments
pulumi-kubernetes-operator
pulumiverse
python
registry
status
testingtesting123
testingtesting321
typescript
welcome
workshops
yaml
Powered by
Title
s
swift-island-2275
10/27/2021, 6:40 PM
Hi, I've a general question regarding Pulumi, does Pulumi have a concept of data source ? (in Terraform, we use data keywoard for that,
https://www.terraform.io/docs/language/data-sources/index.html
)
f
freezing-van-87649
10/27/2021, 6:43 PM
pulumi has resources and functions
a function is basically the equivalent of a datasource
check out the ec2 docs:
https://www.pulumi.com/registry/packages/aws/api-docs/ec2/
you have a bunch of resources, and bunch of
Get*
functions
(which I'm pretty sure are terraform data sources under the hood)
r
red-match-15116
10/27/2021, 6:45 PM
Yes, data sources in tf map to functions in pulumi
👍 1
s
swift-island-2275
10/27/2021, 6:52 PM
I see , thanks for info
#general
Join Slack