Skip to content

Commit

Permalink
feat: Add ID of the notification configuraton as output (#22)
Browse files Browse the repository at this point in the history
* feat: Add ID of the notification configuraton 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] committed Feb 2, 2022
1 parent a17a308 commit 98d81bf
Show file tree
Hide file tree
Showing 5 changed files with 35 additions and 26 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.

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

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

* tfe_notification_configuration

## Graph

Expand All @@ -13,31 +14,34 @@ Copy and paste into your Terraform configuration, insert the variables and run `

```hcl
module "tfe_organization" {
source = "dhoppeIT/organization/tfe"
source = "dhoppeIT/organization/tfe"
version = "~> 0.1"
name = "dhoppeIT"
email = "terraform@dhoppe.it"
}
module "tfe_workspace" {
source = "dhoppeIT/workspace/tfe"
source = "dhoppeIT/workspace/tfe"
version = "~> 0.2"
name = "terraform"
organization = module.tfe_organization.name
}
module "tfe_notification" {
source = "dhoppeIT/notification/tfe"
source = "dhoppeIT/notification/tfe"
version = "~> 0.1"
name = "slack"
enabled = true
destination_type = "slack"
triggers = [
triggers = [
"run:needs_attention",
"run:errored"
]
url = "https://hooks.slack.com/services/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"
workspace_id = module.tfe_workspace.id
url = "https://hooks.slack.com/services/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"
workspace_id = module.tfe_workspace.id
}
```

Expand All @@ -53,7 +57,7 @@ module "tfe_notification" {

| 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 @@ -81,7 +85,9 @@ No modules.

## Outputs

No outputs.
| Name | Description |
|------|-------------|
| <a name="output_id"></a> [id](#output\_id) | The ID of the notification configuration |

<!--- END_TF_DOCS --->

Expand Down
1 change: 0 additions & 1 deletion locals.tf

This file was deleted.

4 changes: 4 additions & 0 deletions outputs.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
output "id" {
value = tfe_notification_configuration.default.id
description = "The ID of the notification configuration"
}
Loading

0 comments on commit 98d81bf

Please sign in to comment.