Hi, we have set up a dagster cloud Agent with a la...
# deployment-ecs
m
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.
j
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.
m
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
j
You’re trying to find logs for the agent ecs service in cloud watch?
m
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
j
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?
m
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
we will delete the agent belonging to sandbox acc