Esempio n. 1
0
func getFormattedContainerName(task *ecs.Task, container *ecs.Container) string {
	taskId := getIdFromArn(task.TaskArn)
	return composeutils.GetFormattedContainerName(taskId, aws.StringValue(container.Name))
}
Esempio n. 2
0
// Name returns the task's UUID with the container
// ECS doesn't have a describe container API so providing the task's UUID in the name enables users
// to easily look up this container in the ecs world by invoking DescribeTask
func (c *Container) Name() string {
	taskId := utils.GetIdFromArn(aws.StringValue(c.task.TaskArn))
	return utils.GetFormattedContainerName(taskId, aws.StringValue(c.ecsContainer.Name))
}