Skip to content

Commit

Permalink
feat: Add ID of the OAuth client as output (#22)
Browse files Browse the repository at this point in the history
* feat: Add ID of the OAuth client as output

* docs: Add missing version argument to module block

* chore: Add support for latest available Terraform provider (tfe)

* chore: Remove empty file (locals.tf)

* docs: Generate README.md

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
dhoppe and github-actions[bot] authored Feb 2, 2022
1 parent f43761e commit 3575ada
Show file tree
Hide file tree
Showing 5 changed files with 36 additions and 21 deletions.
28 changes: 14 additions & 14 deletions .terraform.lock.hcl

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

21 changes: 16 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
# terraform-tfe-oauth_client

Terraform module to manage the Terraform Cloud/Enterprise resource
(tfe_oauth_client).
Terraform module to manage the following Terraform Cloud/Enterprise resource:

* tfe_oauth_client

## Graph

Expand All @@ -12,10 +13,19 @@ Terraform module to manage the Terraform Cloud/Enterprise resource
Copy and paste into your Terraform configuration, insert the variables and run ```terraform init```:

```hcl
module "tfe_organization" {
source = "dhoppeIT/organization/tfe"
version = "~> 0.1"
name = "dhoppeIT"
email = "terraform@dhoppe.it"
}
module "tfe_oauth_client" {
source = "dhoppeIT/oauth_client/tfe"
source = "dhoppeIT/oauth_client/tfe"
version = "~> 0.2"
organization = "dhoppeIT"
organization = module.tfe_organization.name
api_url = "https://api.github.com"
http_url = "https://github.com"
oauth_token = "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"
Expand All @@ -35,7 +45,7 @@ module "tfe_oauth_client" {

| Name | Version |
|------|---------|
| <a name="provider_tfe"></a> [tfe](#provider\_tfe) | 0.27.1 |
| <a name="provider_tfe"></a> [tfe](#provider\_tfe) | 0.28.0 |

## Modules

Expand Down Expand Up @@ -65,6 +75,7 @@ No modules.

| Name | Description |
|------|-------------|
| <a name="output_id"></a> [id](#output\_id) | The ID of the OAuth client |
| <a name="output_oauth_token_id"></a> [oauth\_token\_id](#output\_oauth\_token\_id) | The ID of the OAuth token associated with the OAuth client |

<!--- END_TF_DOCS --->
Expand Down
1 change: 0 additions & 1 deletion locals.tf

This file was deleted.

5 changes: 5 additions & 0 deletions outputs.tf
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
output "id" {
value = tfe_oauth_client.default.id
description = "The ID of the OAuth client"
}

output "oauth_token_id" {
value = tfe_oauth_client.default.oauth_token_id
description = "The ID of the OAuth token associated with the OAuth client"
Expand Down
Loading

0 comments on commit 3575ada

Please sign in to comment.