Hi, we have set up a dagster cloud Agent with a label . I wonder if I can find the corresponding objects in my aws account by searching e.g. the ecs service oder cloud watch logs for this label.
12/20/2022, 2:43 PM
I’d expect so, yes. If the label is only on the agent though you’ll only see logs for that service, not for runs etc.
12/20/2022, 3:18 PM
my problem ist, that the agent has a weird name like Agent b0c57cc9 and i do not find this "key word" when searching in aws
12/20/2022, 6:02 PM
You’re trying to find logs for the agent ecs service in cloud watch?
12/21/2022, 5:00 AM
I do find my logs, sure.
We used the template from the dagster docu to create an ecs agent. we used it as a blueprint and coded the functionality of it with aws cdk in order to build our own cdk stack. of course we changed things like service name. output is the cloudformation template that builds our ecs cluster, service, task. After having the task up and running the first time, the agent shows up in dagster cloud - as expected. this agent is labeled with a completely different name which has obvious nothing to do with the names we specified for the ecs cluster oder service name. Do you know what I mean? 🙂 regards, Max
12/22/2022, 8:12 PM
I think I follow- you’re asking about searching aws using the name that we display in dagster cloud?
By default that name is just a random id that we assign at agent startup that wouldn’t be searchable. There’s a way to give a custom label that could help though, let me dig it up
Ah it’s actually not currently parametrizable with the cloudformation template, I’ve filed an issue.
I also noticed you have 2 agents running, is that intentional?
01/04/2023, 5:43 AM
Sorry, I was in the holidays.... You see 2 agents, because it is a test env. one belongs to aws sandbox and one belongs to our real aws dev account