Skip to content

Commit

Permalink
SCALRCORE-25214 Update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
petroprotsakh committed Jun 12, 2023
1 parent d8ad9b6 commit 9dfe9cb
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 13 deletions.
7 changes: 6 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,17 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

### Added

- **New resource:** `scalr_slack_integration` ([#249](https://github.com/Scalr/terraform-provider-scalr/pull/249))

### Changed

- `scar_enviroment`: removed attribute `cloud_credentials` ([#247](https://github.com/Scalr/terraform-provider-scalr/pull/247))
- `data.scalr_enviroment`: removed attribute `cloud_credentials` ([#247](https://github.com/Scalr/terraform-provider-scalr/pull/247))

### Fixed

- `scalr_provider_configuration_default`: fixed a bug where unnecessary policy groups updates were occurring for the environment ([#248](https://github.com/Scalr/terraform-provider-scalr/pull/248))

## [1.0.6] - 2023-05-12
Expand All @@ -21,7 +27,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- The provider now supports loading the credentials stored by `terraform login` ([#221](https://github.com/Scalr/terraform-provider-scalr/pull/221))
- **New data source:** `scalr_environments` ([#225](https://github.com/Scalr/terraform-provider-scalr/pull/225))
- **New data source:** `scalr_workspaces` ([#225](https://github.com/Scalr/terraform-provider-scalr/pull/225))
- **New resource:** `scalr_slack_integration` ([#250](https://github.com/Scalr/terraform-provider-scalr/pull/250))

### Changed

Expand Down
25 changes: 13 additions & 12 deletions docs/resources/scalr_slack_integration.md
Original file line number Diff line number Diff line change
@@ -1,33 +1,34 @@

# Resource `scalr_slack_integration`

Manage the state of slack integrations in Scalr. Create, update and destroy.
Slack workspace should be connected to scalr account before using this resource.
Manage the state of Slack integrations in Scalr. Create, update and destroy.
Slack workspace should be connected to Scalr account before using this resource.

## Example Usage

Basic usage:

```hcl
resource "scalr_slack_integration" "test" {
name = "my-channel"
account_id = "acc-xxxx"
events = ["run_approval_required", "run_success", "run_errored"]
channel_id = "xxxx" //Can be found in slack UI (channel settings/info popup)
name = "my-channel"
account_id = "acc-xxxx"
events = ["run_approval_required", "run_success", "run_errored"]
channel_id = "xxxx" # Can be found in slack UI (channel settings/info popup)
environments = ["env-xxxxx"]
workspaces = ["ws-xxxx", "ws-xxxx"]
}
```

## Argument Reference

* `name` - (Required) Name of the slack integration.
* `channel_id` - (Required) Slack channel event should be sent to.
* `name` - (Required) Name of the Slack integration.
* `channel_id` - (Required) Slack channel ID the event will be sent to.
* `events` - (Required) Terraform run events you would like to receive a Slack notifications for.
Supported values are `run_approval_required`, `run_success`, `run_errored`
* `environments` - (Required) List of environments where events should be triggered on.
* `environments` - (Optional) List of workspaces where events should be triggered on.
Workspaces should be in provided environments.
Supported values are `run_approval_required`, `run_success`, `run_errored`.
* `environments` - (Required) List of environments where events should be triggered.
* `workspaces` - (Optional) List of workspaces where events should be triggered.
Workspaces should be in provided environments. If no workspace is given for a specified environment,
events will trigger in all of its workspaces.
* `account_id` - (Optional) ID of the account.


Expand Down

0 comments on commit 9dfe9cb

Please sign in to comment.