summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorNicholas M. Iodice <niiodice@microsoft.com>2019-09-18 22:32:27 -0500
committerRichard Guthrie <rguthriemsft@users.noreply.github.com>2019-09-18 20:32:27 -0700
commit7e7777b0e8e5994f5937b06fd7a02b412ec41d79 (patch)
treeb714cca61b19d7ee8f8d3aed6d8a7829491fb175 /examples
parent1f1c70a313b98803f134800e38e8a36413a4ef87 (diff)
Remove hack prep; Make repository look like terraform provider (#33)
* This change removes the initial hack prep * Promote terraform source to top level * Remove hack prep * Standardize build scripts * Update README.md * removing go.mod from .gitignore; adding module cache to build script
Diffstat (limited to 'examples')
-rw-r--r--examples/main.tf28
1 files changed, 28 insertions, 0 deletions
diff --git a/examples/main.tf b/examples/main.tf
new file mode 100644
index 00000000..819a3beb
--- /dev/null
+++ b/examples/main.tf
@@ -0,0 +1,28 @@
+
+# Make sure to set the following environment variables:
+# AZDO_PERSONAL_ACCESS_TOKEN
+# AZDO_ORG_SERVICE_URL
+provider "azuredevops" {
+ version = ">= 0.0.1"
+}
+
+resource "azuredevops_project" "project" {
+ project_name = "Test Project"
+ description = "Test Project Description"
+ visibility = "private"
+ version_control = "Git"
+ work_item_template = "Agile"
+}
+
+resource "azuredevops_pipeline" "pipeline" {
+ project_id = azuredevops_project.project.project_id
+ pipeline_name = "Test Pipeline"
+
+ repository {
+ repo_type = "GitHub"
+ repo_name = "nmiodice/terraform-azure-devops-hack"
+ branch_name = "master"
+ yml_path = "azdo-api-samples/azure-pipeline.yml"
+ service_connection_id = "1a0e1da9-57a6-4470-8e96-160a622c4a17" # Note: Eventually this will come from a GitHub Service Connection resource...
+ }
+}