-
Notifications
You must be signed in to change notification settings - Fork 389
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Documentation - adding
datadog_integration_slack_channel
slack impo…
…rt example (#1128) * Added a `terraform import` example for `datadog_integration_slack_channel` * Refactored `datadog_integration_slack` Terraform example to match import example * Removed some trailing whitespace * Regenerated docs via `make docs`
- Loading branch information
1 parent
65e1149
commit 4f91a05
Showing
7 changed files
with
17 additions
and
10 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1 @@ | ||
terraform import datadog_downtime.bytes_received_localhost 2081 | ||
|
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,3 +1,2 @@ | ||
# Amazon Web Services integrations can be imported using their account ID and role name separated with a colon (:), while the external_id should be passed by setting an environment variable called EXTERNAL_ID | ||
EXTERNAL_ID=${external_id} terraform import datadog_integration_aws.test ${account_id}:${role_name} | ||
|
1 change: 0 additions & 1 deletion
1
examples/resources/datadog_integration_aws_lambda_arn/import.sh
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,3 +1,2 @@ | ||
# Amazon Web Services Lambda ARN integrations can be imported using their account_id and lambda_arn separated with a space (` `). | ||
terraform import datadog_integration_aws_lambda_arn.test "1234567890 arn:aws:lambda:us-east-1:1234567890:function:datadog-forwarder-Forwarder" | ||
|
1 change: 0 additions & 1 deletion
1
examples/resources/datadog_integration_aws_log_collection/import.sh
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,3 +1,2 @@ | ||
# Amazon Web Services log collection integrations can be imported using the `account ID`. | ||
terraform import datadog_integration_aws_log_collection.test 1234567890 | ||
|
2 changes: 2 additions & 0 deletions
2
examples/resources/datadog_integration_slack_channel/import.sh
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,2 @@ | ||
# Slack channel integrations can be imported using their account_name and channel_name separated with a colon (`:`). | ||
terraform import datadog_integration_slack_channel.test_channel "foo:#test_channel" |
7 changes: 4 additions & 3 deletions
7
examples/resources/datadog_integration_slack_channel/resource.tf
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,10 +1,11 @@ | ||
resource "datadog_integration_slack_channel" "slack_channel" { | ||
resource "datadog_integration_slack_channel" "test_channel" { | ||
account_name = "foo" | ||
channel_name = "#test_channel" | ||
|
||
display { | ||
message = true | ||
notified = false | ||
snapshot = false | ||
tags = true | ||
} | ||
channel_name = "#test_channel" | ||
account_name = "foo" | ||
} |