Pinned Loading
-
-
-
-
-
List container port mappings from EC...
List container port mappings from ECS task definitions IFF they are defined 1for task in $(aws ecs list-task-definitions | jq '.taskDefinitionArns' | tail -n +2 | head -n -1 | tr -d ',' | tr -d '"' | awk -F'/' '{print $2}') ; do aws ecs describe-task-definition --task-definition ${task} | jq '.taskDefinition | .taskDefinitionArn as $taskName | .containerDefinitions | .[] | select(.portMappings != []) | {TaskARN: $taskName, Ports: .portMappings}' ; done
-
Get all private ips from all EC2 ins...
Get all private ips from all EC2 instances having my-vm on the name tag 1aws ec2 describe-instances | jq '.Reservations[] | .Instances[] | (.Tags | { "iname": ( map ( select(.Value | contains("my-vm")))[] | .Value ) } ) + ( { "ip": ( .NetworkInterfaces[].PrivateIpAddress) } )' | jq -s . | jq ' group_by(.iname)[] | {(.[0].iname): [.[] | .ip]}' | jq -s .
Something went wrong, please refresh the page to try again.
If the problem persists, check the GitHub status page or contact support.
If the problem persists, check the GitHub status page or contact support.