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
When we deploy into Aws carpanta. We create the following resources:
cluster
task definition
service
In order to retrieve the public IP behind the task running in the cluster, we have to perform 3 requests (in strict order):
Lists the tasks running in the cluster (e.g. aws-cli ecs list-tasks --cluster <cluster_arn>)
Describe a task from a cluster (e.g. aws-cli ecs describe-tasks --cluster --cluster <cluster_arn> --tasks <task_arn>). This permits obtaining the ENI (Elastic Network Interface) id.
Retrieve details of an ENI (e.g. aws-cli ec2 describe-network-interfaces --network-interface-ids <eni_id>). This contains the public IP behind the Elastic Network interface attached to the running task.
Once we have obtained the Public IP, we should log into the output the IP in order to reduce the necessity of going to the AWS panel.
The text was updated successfully, but these errors were encountered:
We can explore the different options provided by aws-cli ecs through docker by typing in the terminal: docker run --rm -it -v $PWD/.aws:/root/.aws amazon/aws-cli ecs help
When we deploy into Aws carpanta. We create the following resources:
In order to retrieve the public IP behind the task running in the cluster, we have to perform 3 requests (in strict order):
aws-cli ecs list-tasks --cluster <cluster_arn>
)aws-cli ecs describe-tasks --cluster --cluster <cluster_arn> --tasks <task_arn>
). This permits obtaining the ENI (Elastic Network Interface) id.aws-cli ec2 describe-network-interfaces --network-interface-ids <eni_id>
). This contains the public IP behind the Elastic Network interface attached to the running task.Once we have obtained the Public IP, we should log into the output the IP in order to reduce the necessity of going to the AWS panel.
The text was updated successfully, but these errors were encountered: