https://pulumi.com logo
#aws
Title
# aws
v

victorious-king-45443

12/12/2023, 11:23 PM
Hi Guys, very simple question, how to retrieve specific partner event source , was trying aws.cloudwatch.get_event_source with name prefix but it's returning multiple , any ideas ?
s

stocky-restaurant-98004

12/12/2023, 11:39 PM
Can you post the exact code your running? If you iterate through the results and print them, it should show you what the function is returning, which should help you narrow down the results.
v

victorious-king-45443

12/12/2023, 11:40 PM
examplepartner = aws.cloudwatch.get_event_source( name_prefix=event_relay_query_resource.aws_resource_endpoint )
s

stocky-restaurant-98004

12/12/2023, 11:41 PM
So I would check the value of
event_relay_query_resource.aws_resource_endpoint
via
pulumi.export()
first - maybe it's blank or something.
And also, loop through the results and see what you've got there.
v

victorious-king-45443

12/12/2023, 11:43 PM
Screenshot 2023-12-12 at 23.41.35.png
just trying to understand, how can i use get_event_source to search by specific name /arn
i have checked and it has value
s

stocky-restaurant-98004

12/13/2023, 1:08 AM
Ah, I see. I'm guessing it's not possible since I don't see it in the arguments.
What's the value of that
name_prefix
tho? A resource endpoint should be uniquely named.
2 Views