-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from dhoppeIT/add_resources
Manage the following Terraform resources
- Loading branch information
Showing
7 changed files
with
111 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
resource "tfe_oauth_client" "default" { | ||
organization = var.organization | ||
api_url = var.api_url | ||
http_url = var.http_url | ||
oauth_token = var.oauth_token | ||
private_key = var.private_key | ||
service_provider = var.service_provider | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
output "oauth_token_id" { | ||
value = tfe_oauth_client.default.oauth_token_id | ||
description = "The ID of the OAuth token associated with the OAuth client" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
variable "organization" { | ||
type = string | ||
default = null | ||
description = "Name of the organization" | ||
} | ||
|
||
variable "api_url" { | ||
type = string | ||
default = null | ||
description = "The base URL of your VCS provider's API" | ||
} | ||
|
||
variable "http_url" { | ||
type = string | ||
default = null | ||
description = "The homepage of your VCS provider" | ||
} | ||
|
||
variable "oauth_token" { | ||
type = string | ||
default = null | ||
description = "The token string you were given by your VCS provider" | ||
} | ||
|
||
variable "private_key" { | ||
type = string | ||
default = null | ||
description = "The text of the private key associated with your Azure DevOps Server account" | ||
} | ||
|
||
variable "service_provider" { | ||
type = string | ||
default = null | ||
description = "The VCS provider being connected with" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,10 @@ | ||
terraform { | ||
required_providers {} | ||
required_providers { | ||
tfe = { | ||
source = "hashicorp/tfe" | ||
version = ">= 0.26.1, < 1.0.0" | ||
} | ||
} | ||
|
||
required_version = ">= 1.0" | ||
} |