func success()

in workload-management/s3-trigger-ecs-task/s3-file-processor/main.go [79:94]


func success() {
	// Copy contents from source to destination
	sourceFile := utils.GetOutputFile(false)

	copyCmd := fmt.Sprintf("aws s3 cp %s s3://%s/%s_Single_Output", sourceFile,
		os.Getenv(utils.S3BucketName), os.Getenv(utils.S3Key))

	_, err := exec.Command("sh", "-c", copyCmd).Output()

	if err != nil {
		failure(err.Error())
	}

	utils.DeleteOutputFolder()
	utils.DeleteInputFile()
}