func (agent *ecsAgent) getContainerInstanceTagsFromEC2API() ([]*ecs.Tag, error) {
	// Get instance ID from ec2 metadata client.
	instanceID, err := agent.ec2MetadataClient.InstanceID()
	if err != nil {
		return nil, err
	}

	return agent.ec2Client.DescribeECSTagsForInstance(instanceID)
}
func (agent *ecsAgent) getContainerInstanceTagsFromEC2API() ([]*ecs.Tag, error) {
	
	instanceID, err := agent.ec2MetadataClient.InstanceID()
	if err != nil {
		return nil, err
	}

	return agent.ec2Client.DescribeECSTagsForInstance(instanceID)
}
func ( agent * ecsAgent ) getContainerInstanceTagsFromEC2API ( ) ( [ ] * ecs . Tag , error ) { // Get instance ID from ec2 metadata client. instanceID , err := agent . ec2MetadataClient . InstanceID ( ) if err != nil { return nil , err } return agent . ec2Client . DescribeECSTagsForInstance ( instanceID ) }
// getContainerInstanceTagsFromEC2API will retrieve the tags of this instance remotely.
getContainerInstanceTagsFromEC2API will retrieve the tags of this instance remotely .