You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Make it easy to start a session to the task given a task arn. Not sure if start-session is the best name. Basically just take the arn and convert to the correct aws command. So manage-arkime.py --profile foobar start-session --arn arn:aws:ecs:us-east-1:123:task/MyCluster-ViewerNodes-Cluster-XXX/12345
would be translated to aws --profile foobar --region us-east-1 ecs execute-command --cluster MyCluster-ViewerNodes-Cluster-XXX --task 12345 --interactive --command "/bin/bash"
Maybe there an aws command that already does this, but I couldn't find it. :)
Here is a perl implementation that hardcodes the profile, which the real version shouldn't. :)
#!/usr/bin/perl
use strict;
my @parts = split('/', $ARGV[0]);
my @parts2 = split(':', $parts[0]);
system (qq(aws --profile foobar --region $parts2[3] ecs execute-command --cluster $parts[1] --task $parts[2] --interactive --command "/bin/bash"));
The text was updated successfully, but these errors were encountered:
Make it easy to start a session to the task given a task arn. Not sure if start-session is the best name. Basically just take the arn and convert to the correct aws command. So
manage-arkime.py --profile foobar start-session --arn arn:aws:ecs:us-east-1:123:task/MyCluster-ViewerNodes-Cluster-XXX/12345
would be translated to
aws --profile foobar --region us-east-1 ecs execute-command --cluster MyCluster-ViewerNodes-Cluster-XXX --task 12345 --interactive --command "/bin/bash"
Maybe there an aws command that already does this, but I couldn't find it. :)
Here is a perl implementation that hardcodes the profile, which the real version shouldn't. :)
The text was updated successfully, but these errors were encountered: