Hi Guys, very simple question, how to retrieve spe...
# aws
v
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
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
examplepartner = aws.cloudwatch.get_event_source( name_prefix=event_relay_query_resource.aws_resource_endpoint )
s
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
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
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.