Hey, I'm looking for Pulumi resources to get Cloud...
# python
Hey, I'm looking for Pulumi resources to get CloudFront distribution (maybe by tag). I don't have the ID and I would love to get it from Pulumi. I*t's like this aws command* Thanks.
Not 100% sure, but it does not look like you can query for multiple distributions. All I see is this, which requires an ID: https://www.pulumi.com/registry/packages/aws/api-docs/cloudfront/getdistribution/ Are you trying to bring CloudFront Distributions under Pulumi management? If so, you'll want to query via boto3 and then use the
pulumi import
command. This blog post shows how to do it for other resource types like VPCs, so you'd need to modify this code slightly to do the same for CloudFront Distributions: https://www.pulumi.com/blog/automating-pulumi-import-to-bring-manually-created-resources-into-iac/