diff --git a/bwa.wdl b/bwa.wdl
index d4f4495afbc008023ac8fb138791f2f93952cc14..f79a219a36e465e8a40eb137d9eb5cda34712d08 100644
--- a/bwa.wdl
+++ b/bwa.wdl
@@ -114,3 +114,29 @@ struct BwaIndex {
     File fastaFile
     Array[File] indexFiles
 }
+
+task Index {
+    input {
+        File fasta
+    }
+    File indexedFile = "reference.fasta"
+
+    command {
+        set -e
+        cp ~{fasta} ~{indexedFile}
+        bwa index ~{indexedFile}
+    }
+
+    output {
+        BwaIndex index = {
+            "fastaFile": indexedFile,
+            "indexFiles": [
+                indexedFile + ".amb",
+                indexedFile + ".ann",
+                indexedFile + ".bwt",
+                indexedFile + ".pac",
+                indexedFile + ".sa"
+            ]
+        }
+    }
+}
\ No newline at end of file