Skip to content

Commit

Permalink
SCALRCORE-31428 [TF-PROVIDER] API > Sunset of old webhooks API (#332)
Browse files Browse the repository at this point in the history
* SCALRCORE-31428 remove data.scalr_endpoint and scalr_endpoint

* SCALRCORE-31428 update

* SCALRCORE-31428 update

* SCALRCORE-31428 update

* SCALRCORE-31428 fix lint

* SCALRCORE-31428 fix lint

* SCALRCORE-31428 fix test

* SCALRCORE-31428 fix test

* SCALRCORE-3142 update changelog

* SCALRCORE-31428 update changelog

* SCALRCORE-31428 update changelog

* Update CHANGELOG.md

Co-authored-by: Petro Protsakh <[email protected]>

* SCALRCORE-31428 CR fixes.

* SCALRCORE-31428 CR fixes.

* SCALRCORE-31428 make url required

* SCALRCORE-31428 update client

---------

Co-authored-by: Petro Protsakh <[email protected]>
  • Loading branch information
RomanMytsko and petroprotsakh authored Aug 12, 2024
1 parent 18900c6 commit b056a9c
Show file tree
Hide file tree
Showing 59 changed files with 105 additions and 1,466 deletions.
14 changes: 14 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,20 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

### Removed
- `data.scalr_endpoint`: removed data source ([#332](https://github.com/Scalr/terraform-provider-scalr/pull/332))
- `scalr_endpoint`: removed resource ([#332](https://github.com/Scalr/terraform-provider-scalr/pull/332))
- `scalr_webhook`: removed attribute `endpoint_id` ([#332](https://github.com/Scalr/terraform-provider-scalr/pull/332))
- `scalr_webhook`: removed attribute `environment_id` ([#332](https://github.com/Scalr/terraform-provider-scalr/pull/332))
- `scalr_webhook`: removed attribute `workspace_id` ([#332](https://github.com/Scalr/terraform-provider-scalr/pull/332))
- `data.scalr_webhook`: removed attribute `endpoint_id` ([#332](https://github.com/Scalr/terraform-provider-scalr/pull/332))
- `data.scalr_webhook`: removed attribute `environment_id` ([#332](https://github.com/Scalr/terraform-provider-scalr/pull/332))
- `data.scalr_webhook`: removed attribute `workspace_id` ([#332](https://github.com/Scalr/terraform-provider-scalr/pull/332))

### Changed
- `scalr_webhook`: `account_id` attribute became required ([#332](https://github.com/Scalr/terraform-provider-scalr/pull/332))
- `scalr_webhook`: `url` attribute became required ([#332](https://github.com/Scalr/terraform-provider-scalr/pull/332))

## [1.13.0] - 2024-08-02

### Added
Expand Down
44 changes: 0 additions & 44 deletions docs/data-sources/endpoint.md

This file was deleted.

2 changes: 1 addition & 1 deletion docs/data-sources/environment.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ categorySlug: "scalr-terraform-provider"
slug: "provider_datasource_scalr_environment"
parentDocSlug: "provider_datasources"
hidden: false
order: 6
order: 5
---
## Data Source: scalr_environment

Expand Down
2 changes: 1 addition & 1 deletion docs/data-sources/environments.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ categorySlug: "scalr-terraform-provider"
slug: "provider_datasource_scalr_environments"
parentDocSlug: "provider_datasources"
hidden: false
order: 7
order: 6
---
## Data Source: scalr_environments

Expand Down
2 changes: 1 addition & 1 deletion docs/data-sources/event_bridge_integration.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ categorySlug: "scalr-terraform-provider"
slug: "provider_datasource_scalr_event_bridge_integration"
parentDocSlug: "provider_datasources"
hidden: false
order: 8
order: 7
---
## Data Source: scalr_event_bridge_integration

Expand Down
2 changes: 1 addition & 1 deletion docs/data-sources/iam_team.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ categorySlug: "scalr-terraform-provider"
slug: "provider_datasource_scalr_iam_team"
parentDocSlug: "provider_datasources"
hidden: false
order: 9
order: 8
---
## Data Source: scalr_iam_team

Expand Down
2 changes: 1 addition & 1 deletion docs/data-sources/iam_user.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ categorySlug: "scalr-terraform-provider"
slug: "provider_datasource_scalr_iam_user"
parentDocSlug: "provider_datasources"
hidden: false
order: 10
order: 9
---
## Data Source: scalr_iam_user

Expand Down
2 changes: 1 addition & 1 deletion docs/data-sources/module_version.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ categorySlug: "scalr-terraform-provider"
slug: "provider_datasource_scalr_module_version"
parentDocSlug: "provider_datasources"
hidden: false
order: 11
order: 10
---
## Data Source: scalr_module_version

Expand Down
2 changes: 1 addition & 1 deletion docs/data-sources/policy_group.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ categorySlug: "scalr-terraform-provider"
slug: "provider_datasource_scalr_policy_group"
parentDocSlug: "provider_datasources"
hidden: false
order: 12
order: 11
---
## Data Source: scalr_policy_group

Expand Down
2 changes: 1 addition & 1 deletion docs/data-sources/provider_configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ categorySlug: "scalr-terraform-provider"
slug: "provider_datasource_scalr_provider_configuration"
parentDocSlug: "provider_datasources"
hidden: false
order: 13
order: 12
---
## Data Source: scalr_provider_configuration

Expand Down
2 changes: 1 addition & 1 deletion docs/data-sources/provider_configurations.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ categorySlug: "scalr-terraform-provider"
slug: "provider_datasource_scalr_provider_configurations"
parentDocSlug: "provider_datasources"
hidden: false
order: 14
order: 13
---
## Data Source: scalr_provider_configurations

Expand Down
2 changes: 1 addition & 1 deletion docs/data-sources/role.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ categorySlug: "scalr-terraform-provider"
slug: "provider_datasource_scalr_role"
parentDocSlug: "provider_datasources"
hidden: false
order: 15
order: 14
---
## Data Source: scalr_role

Expand Down
2 changes: 1 addition & 1 deletion docs/data-sources/service_account.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ categorySlug: "scalr-terraform-provider"
slug: "provider_datasource_scalr_service_account"
parentDocSlug: "provider_datasources"
hidden: false
order: 16
order: 15
---
## Data Source: scalr_service_account

Expand Down
2 changes: 1 addition & 1 deletion docs/data-sources/tag.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ categorySlug: "scalr-terraform-provider"
slug: "provider_datasource_scalr_tag"
parentDocSlug: "provider_datasources"
hidden: false
order: 17
order: 16
---
## Data Source: scalr_tag

Expand Down
2 changes: 1 addition & 1 deletion docs/data-sources/variable.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ categorySlug: "scalr-terraform-provider"
slug: "provider_datasource_scalr_variable"
parentDocSlug: "provider_datasources"
hidden: false
order: 18
order: 17
---
## Data Source: scalr_variable

Expand Down
2 changes: 1 addition & 1 deletion docs/data-sources/variables.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ categorySlug: "scalr-terraform-provider"
slug: "provider_datasource_scalr_variables"
parentDocSlug: "provider_datasources"
hidden: false
order: 19
order: 18
---
## Data Source: scalr_variables

Expand Down
2 changes: 1 addition & 1 deletion docs/data-sources/vcs_provider.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ categorySlug: "scalr-terraform-provider"
slug: "provider_datasource_scalr_vcs_provider"
parentDocSlug: "provider_datasources"
hidden: false
order: 20
order: 19
---
## Data Source: scalr_vcs_provider

Expand Down
5 changes: 1 addition & 4 deletions docs/data-sources/webhook.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ categorySlug: "scalr-terraform-provider"
slug: "provider_datasource_scalr_webhook"
parentDocSlug: "provider_datasources"
hidden: false
order: 21
order: 20
---
## Data Source: scalr_webhook

Expand Down Expand Up @@ -36,8 +36,6 @@ data "scalr_webhook" "example2" {
### Read-Only

- `enabled` (Boolean) Boolean indicates if the webhook is enabled.
- `endpoint_id` (String, Deprecated) ID of the endpoint, in the format `ep-<RANDOM STRING>`.
- `environment_id` (String, Deprecated) ID of the environment, in the format `env-<RANDOM STRING>`.
- `environments` (Set of String) The list of environment identifiers that the webhook is shared to, or `["*"]` if shared with all environments.
- `events` (List of String) List of event IDs.
- `header` (Set of Object) Additional headers to set in the webhook request. (see [below for nested schema](#nestedatt--header))
Expand All @@ -46,7 +44,6 @@ data "scalr_webhook" "example2" {
- `secret_key` (String, Sensitive, Deprecated) Secret key to sign the webhook payload.
- `timeout` (Number) Endpoint timeout (in seconds).
- `url` (String) Endpoint URL.
- `workspace_id` (String, Deprecated) ID of the workspace, in the format `ws-<RANDOM STRING>`.

<a id="nestedatt--header"></a>
### Nested Schema for `header`
Expand Down
2 changes: 1 addition & 1 deletion docs/data-sources/workspace.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ categorySlug: "scalr-terraform-provider"
slug: "provider_datasource_scalr_workspace"
parentDocSlug: "provider_datasources"
hidden: false
order: 22
order: 21
---
## Data Source: scalr_workspace

Expand Down
2 changes: 1 addition & 1 deletion docs/data-sources/workspace_ids.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ categorySlug: "scalr-terraform-provider"
slug: "provider_datasource_scalr_workspace_ids"
parentDocSlug: "provider_datasources"
hidden: false
order: 23
order: 22
---
## Data Source: scalr_workspace_ids

Expand Down
2 changes: 1 addition & 1 deletion docs/data-sources/workspaces.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ categorySlug: "scalr-terraform-provider"
slug: "provider_datasource_scalr_workspaces"
parentDocSlug: "provider_datasources"
hidden: false
order: 24
order: 23
---
## Data Source: scalr_workspaces

Expand Down
69 changes: 0 additions & 69 deletions docs/resources/endpoint.md

This file was deleted.

2 changes: 1 addition & 1 deletion docs/resources/environment.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ categorySlug: "scalr-terraform-provider"
slug: "provider_resource_scalr_environment"
parentDocSlug: "provider_resources"
hidden: false
order: 6
order: 5
---
## Resource: scalr_environment

Expand Down
2 changes: 1 addition & 1 deletion docs/resources/event_bridge_integration.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ categorySlug: "scalr-terraform-provider"
slug: "provider_resource_scalr_event_bridge_integration"
parentDocSlug: "provider_resources"
hidden: false
order: 7
order: 6
---
## Resource: scalr_event_bridge_integration

Expand Down
2 changes: 1 addition & 1 deletion docs/resources/iam_team.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ categorySlug: "scalr-terraform-provider"
slug: "provider_resource_scalr_iam_team"
parentDocSlug: "provider_resources"
hidden: false
order: 8
order: 7
---
## Resource: scalr_iam_team

Expand Down
2 changes: 1 addition & 1 deletion docs/resources/module.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ categorySlug: "scalr-terraform-provider"
slug: "provider_resource_scalr_module"
parentDocSlug: "provider_resources"
hidden: false
order: 9
order: 8
---
## Resource: scalr_module

Expand Down
2 changes: 1 addition & 1 deletion docs/resources/policy_group.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ categorySlug: "scalr-terraform-provider"
slug: "provider_resource_scalr_policy_group"
parentDocSlug: "provider_resources"
hidden: false
order: 10
order: 9
---
## Resource: scalr_policy_group

Expand Down
2 changes: 1 addition & 1 deletion docs/resources/policy_group_linkage.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ categorySlug: "scalr-terraform-provider"
slug: "provider_resource_scalr_policy_group_linkage"
parentDocSlug: "provider_resources"
hidden: false
order: 11
order: 10
---
## Resource: scalr_policy_group_linkage

Expand Down
2 changes: 1 addition & 1 deletion docs/resources/provider_configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ categorySlug: "scalr-terraform-provider"
slug: "provider_resource_scalr_provider_configuration"
parentDocSlug: "provider_resources"
hidden: false
order: 12
order: 11
---
## Resource: scalr_provider_configuration

Expand Down
2 changes: 1 addition & 1 deletion docs/resources/provider_configuration_default.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ categorySlug: "scalr-terraform-provider"
slug: "provider_resource_scalr_provider_configuration_default"
parentDocSlug: "provider_resources"
hidden: false
order: 13
order: 12
---
## Resource: scalr_provider_configuration_default

Expand Down
Loading

0 comments on commit b056a9c

Please sign in to comment.