Skip to content

Commit

Permalink
Fix Data-source / Resource headers and alerts.
Browse files Browse the repository at this point in the history
  • Loading branch information
recipe committed Jan 19, 2024
1 parent fe6a6cf commit 22b433a
Show file tree
Hide file tree
Showing 47 changed files with 111 additions and 111 deletions.
4 changes: 2 additions & 2 deletions docs/data-sources/access_policy.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@ parentDocSlug: "provider_datasources"
hidden: false
order: 1
---
## Data Source Overview
## Data Source: scalr_access_policy

This data source is used to retrieve details of a single access policy by id.

## Example Usage

```terraform
```hcl
data "scalr_access_policy" "example" {
id = "ap-xxxxxxxxxx"
}
Expand Down
4 changes: 2 additions & 2 deletions docs/data-sources/agent_pool.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@ parentDocSlug: "provider_datasources"
hidden: false
order: 2
---
## Data Source Overview
## Data Source: scalr_agent_pool

Retrieves the details of an agent pool.

## Example Usage

```terraform
```hcl
data "scalr_agent_pool" "example1" {
id = "apool-xxxxxxxxxx"
account_id = "acc-xxxxxxxxxx"
Expand Down
4 changes: 2 additions & 2 deletions docs/data-sources/current_account.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@ parentDocSlug: "provider_datasources"
hidden: false
order: 3
---
## Data Source Overview
## Data Source: scalr_current_account

Retrieves the details of current account when using Scalr remote backend.

No arguments are required. The data source returns details of the current account based on the `SCALR_ACCOUNT_ID` environment variable that is automatically exported in the Scalr remote backend.

## Example Usage

```terraform
```hcl
data "scalr_current_account" "account" {}
```

Expand Down
4 changes: 2 additions & 2 deletions docs/data-sources/current_run.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@ parentDocSlug: "provider_datasources"
hidden: false
order: 4
---
## Data Source Overview
## Data Source: scalr_current_run

Allows you to get information about the current Terraform run when using a Scalr remote backend workspace, including VCS (Git) metadata.

No arguments are required. The data source returns details of the current run based on the `SCALR_RUN_ID` shell variable that is automatically exported in the Scalr remoted backend.

## Example Usage

```terraform
```hcl
data "scalr_current_run" "example" {}
```

Expand Down
6 changes: 3 additions & 3 deletions docs/data-sources/endpoint.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@ parentDocSlug: "provider_datasources"
hidden: false
order: 5
---
## Data Source Overview
## Data Source: scalr_endpoint

Retrieves the details of a webhook endpoint.

> 🚧 This datasource is deprecated and will be removed in the next major version.
!> **Warning** This datasource is deprecated and will be removed in the next major version.

## Example Usage

```terraform
```hcl
data "scalr_endpoint" "example1" {
id = "ep-xxxxxxxxxx"
account_id = "acc-xxxxxxxxxx"
Expand Down
4 changes: 2 additions & 2 deletions docs/data-sources/environment.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@ parentDocSlug: "provider_datasources"
hidden: false
order: 6
---
## Data Source Overview
## Data Source: scalr_environment

Retrieves the details of a Scalr environment.

## Example Usage

```terraform
```hcl
data "scalr_environment" "example1" {
id = "env-xxxxxxxxxx"
account_id = "acc-xxxxxxxxxx"
Expand Down
4 changes: 2 additions & 2 deletions docs/data-sources/environments.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@ parentDocSlug: "provider_datasources"
hidden: false
order: 7
---
## Data Source Overview
## Data Source: scalr_environments

Retrieves a list of environment ids by name or tags.

## Example Usage

```terraform
```hcl
data "scalr_environments" "exact-names" {
name = "in:production,development"
}
Expand Down
4 changes: 2 additions & 2 deletions docs/data-sources/iam_team.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@ parentDocSlug: "provider_datasources"
hidden: false
order: 8
---
## Data Source Overview
## Data Source: scalr_iam_team

Retrieves the details of a Scalr team.

## Example Usage

```terraform
```hcl
data "scalr_iam_team" "example1" {
id = "team-xxxxxxxxxx"
account_id = "acc-xxxxxxxxxx"
Expand Down
4 changes: 2 additions & 2 deletions docs/data-sources/iam_user.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@ parentDocSlug: "provider_datasources"
hidden: false
order: 9
---
## Data Source Overview
## Data Source: scalr_iam_user

Retrieves the details of a Scalr user.

## Example Usage

```terraform
```hcl
data "scalr_iam_user" "example1" {
id = "user-xxxxxxxxxx"
}
Expand Down
4 changes: 2 additions & 2 deletions docs/data-sources/module_version.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@ parentDocSlug: "provider_datasources"
hidden: false
order: 10
---
## Data Source Overview
## Data Source: scalr_module_version

Retrieves the module version data by module source and semantic version.

## Example Usage

```terraform
```hcl
data "scalr_module_version" "example" {
source = "env-xxxxxxxxxx/resource-name/scalr"
version = "1.0.0"
Expand Down
4 changes: 2 additions & 2 deletions docs/data-sources/policy_group.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@ parentDocSlug: "provider_datasources"
hidden: false
order: 11
---
## Data Source Overview
## Data Source: scalr_policy_group

Retrieves the details of a policy group.

## Example Usage

```terraform
```hcl
data "scalr_policy_group" "example1" {
id = "pgrp-xxxxxxxxxx"
account_id = "acc-xxxxxxxxxx"
Expand Down
4 changes: 2 additions & 2 deletions docs/data-sources/provider_configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@ parentDocSlug: "provider_datasources"
hidden: false
order: 12
---
## Data Source Overview
## Data Source: scalr_provider_configuration

Retrieves information about a single provider configuration.

## Example Usage

```terraform
```hcl
data "scalr_provider_configuration" "aws" {
id = "pcfg-xxxxxxxxxx"
}
Expand Down
4 changes: 2 additions & 2 deletions docs/data-sources/provider_configurations.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@ parentDocSlug: "provider_datasources"
hidden: false
order: 13
---
## Data Source Overview
## Data Source: scalr_provider_configurations

Retrieves a list of provider configuration ids by name or type.

## Example Usage

```terraform
```hcl
data "scalr_provider_configurations" "aws" {
name = "in:aws_dev,aws_demo,aws_prod"
}
Expand Down
4 changes: 2 additions & 2 deletions docs/data-sources/role.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@ parentDocSlug: "provider_datasources"
hidden: false
order: 14
---
## Data Source Overview
## Data Source: scalr_role

This data source is used to retrieve details of a single role.

## Example Usage

```terraform
```hcl
# To retrieve a custom role, an account id and role id (or name) are required:
data "scalr_role" "example1" {
Expand Down
4 changes: 2 additions & 2 deletions docs/data-sources/service_account.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@ parentDocSlug: "provider_datasources"
hidden: false
order: 15
---
## Data Source Overview
## Data Source: scalr_service_account

Retrieves information about a service account.

## Example Usage

```terraform
```hcl
data "scalr_service_account" "example1" {
id = "sa-xxxxxxxxxx"
account_id = "acc-xxxxxxxxxx"
Expand Down
4 changes: 2 additions & 2 deletions docs/data-sources/tag.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@ parentDocSlug: "provider_datasources"
hidden: false
order: 16
---
## Data Source Overview
## Data Source: scalr_tag

Retrieves information about a tag.

## Example Usage

```terraform
```hcl
data "scalr_tag" "example1" {
id = "tag-xxxxxxxxxx"
account_id = "acc-xxxxxxxxxx"
Expand Down
4 changes: 2 additions & 2 deletions docs/data-sources/variable.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@ parentDocSlug: "provider_datasources"
hidden: false
order: 17
---
## Data Source Overview
## Data Source: scalr_variable

Retrieves the details of a variable.

## Example Usage

```terraform
```hcl
data "scalr_variable" "example1" {
id = "var-xxxxxxxxxx"
account_id = "acc-xxxxxxxxxx"
Expand Down
4 changes: 2 additions & 2 deletions docs/data-sources/variables.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@ parentDocSlug: "provider_datasources"
hidden: false
order: 18
---
## Data Source Overview
## Data Source: scalr_variables

Retrieves the list of variables by the given filters.

## Example Usage

```terraform
```hcl
data "scalr_variables" "example" {
keys = ["key1", "key2", "key3"]
category = "terraform" # or shell
Expand Down
4 changes: 2 additions & 2 deletions docs/data-sources/vcs_provider.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@ parentDocSlug: "provider_datasources"
hidden: false
order: 19
---
## Data Source Overview
## Data Source: scalr_vcs_provider

Retrieves the details of a VCS provider.

## Example Usage

```terraform
```hcl
data "scalr_vcs_provider" "example1" {
id = "vcs-xxxxxxxxxx"
account_id = "acc-xxxxxxxxxx"
Expand Down
4 changes: 2 additions & 2 deletions docs/data-sources/webhook.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@ parentDocSlug: "provider_datasources"
hidden: false
order: 20
---
## Data Source Overview
## Data Source: scalr_webhook

Retrieves the details of a webhook.

## Example Usage

```terraform
```hcl
data "scalr_webhook" "example1" {
id = "wh-xxxxxxxxxx"
account_id = "acc-xxxxxxxxxx"
Expand Down
4 changes: 2 additions & 2 deletions docs/data-sources/workspace.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@ parentDocSlug: "provider_datasources"
hidden: false
order: 21
---
## Data Source Overview
## Data Source: scalr_workspace

Retrieves the details of a single workspace.

## Example Usage

```terraform
```hcl
data "scalr_workspace" "example1" {
id = "ws-xxxxxxxxxx"
environment_id = "env-xxxxxxxxxx"
Expand Down
4 changes: 2 additions & 2 deletions docs/data-sources/workspace_ids.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@ parentDocSlug: "provider_datasources"
hidden: false
order: 22
---
## Data Source Overview
## Data Source: scalr_workspace_ids

Retrieves a map of workspace IDs based on the names provided. Wildcards are accepted.

## Example Usage

```terraform
```hcl
data "scalr_workspace_ids" "app-frontend" {
names = ["app-frontend-prod", "app-frontend-dev1", "app-frontend-staging"]
environment_id = "env-xxxxxxxxxx"
Expand Down
4 changes: 2 additions & 2 deletions docs/data-sources/workspaces.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@ parentDocSlug: "provider_datasources"
hidden: false
order: 23
---
## Data Source Overview
## Data Source: scalr_workspaces

Retrieves a list of workspace ids by name or tags.

## Example Usage

```terraform
```hcl
data "scalr_workspaces" "exact-names" {
name = "in:production,development"
}
Expand Down

0 comments on commit 22b433a

Please sign in to comment.