func fetchClusterNameAndTaskId() (string, string, error) {
	taskMetadata, err := taskMetadataResponse()
	//The TaskID itself is everything that comes after /
	if err != nil {
		return "", "", err
	}
	taskArn := taskMetadata.TaskARN
	seperatedTaskArn := strings.Split(taskArn, "/")
	TaskID := seperatedTaskArn[len(seperatedTaskArn)-1]
	cluster := taskMetadata.Cluster
	seperatedCluster := strings.Split(cluster, "/")
	clusterName := seperatedCluster[len(seperatedCluster)-1]
	return clusterName, TaskID, nil
}
// fetchClusterNameAndTaskId returns the clusterName and taskId of the target
fetchClusterNameAndTaskId returns the clusterName and taskId of the target
// fetchClusterNameAndTaskId returns the clusterName and taskId of the target
func fetchClusterNameAndTaskId() (string, string, error) {
	taskMetadata, err := taskMetadataResponse()
	if err != nil {
		return "", "", err
	}
	taskArn := taskMetadata.TaskARN
	seperatedTaskArn := strings.Split(taskArn, "/")
	TaskID := seperatedTaskArn[len(seperatedTaskArn)-1]
	cluster := taskMetadata.Cluster
	seperatedCluster := strings.Split(cluster, "/")
	clusterName := seperatedCluster[len(seperatedCluster)-1]
	return clusterName, TaskID, nil
}
func fetchClusterNameAndTaskId ( ) ( string , string , error ) { taskMetadata , err := taskMetadataResponse ( ) if err != nil { return " " , " " , err } taskArn := taskMetadata . TaskARN seperatedTaskArn := strings . Split ( taskArn , " " ) TaskID := seperatedTaskArn [ len ( seperatedTaskArn ) - 1 ] cluster := taskMetadata . Cluster seperatedCluster := strings . Split ( cluster , " " ) clusterName := seperatedCluster [ len ( seperatedCluster ) - 1 ] return clusterName , TaskID , nil }
fetchClusterNameAndTaskId returns the clusterName and taskId of the target
fetchClusterNameAndTaskId returns the clusterName and taskId of the target
//The TaskID itself is everything that comes after /