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
i am using this command to create cluster and its working perfectly fine, but now i wanted to ssh into that server and add some configuration file so that i can send logs to other server, i tried ecs-cli ps but it gives me port, state etc. but i need ip address only, i did not found any way to get ip only
The text was updated successfully, but these errors were encountered:
I encounter a similar problem but I used a bash script to get the ips that I needed
LINES=$(ecs-cli ps --cluster test | grep -i -o "[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*") #get each line with ecs-cli ps
IPS=$(echo $LINES | tr " " "\n") #split each line by spaces and \n
for ip in $IPS
do
echo $ip #add ip logic here
done
ecs-cli up --keypair mykeyname --capability-iam --size 1 --instance-type t2.small --region us-east-2 --force
i am using this command to create cluster and its working perfectly fine, but now i wanted to ssh into that server and add some configuration file so that i can send logs to other server, i tried ecs-cli ps but it gives me port, state etc. but i need ip address only, i did not found any way to get ip only
The text was updated successfully, but these errors were encountered: