From 41d803245a13925db344650866e5ef5f1682e2e6 Mon Sep 17 00:00:00 2001 From: Kit Foster Date: Wed, 14 Jun 2023 09:49:34 +0200 Subject: [PATCH 1/8] Update team_id description --- docs/data-sources/project.md | 2 +- docs/resources/alias.md | 2 +- docs/resources/deployment.md | 2 +- docs/resources/dns_record.md | 2 +- docs/resources/project.md | 2 +- docs/resources/project_domain.md | 2 +- docs/resources/project_environment_variable.md | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/docs/data-sources/project.md b/docs/data-sources/project.md index f2440ed4..2f004b67 100644 --- a/docs/data-sources/project.md +++ b/docs/data-sources/project.md @@ -38,8 +38,8 @@ output "project_id" { ### Optional +- `team_id` (String) The team ID the project exists beneath. Required when configuring a team resource. - `password_protection` (Attributes) Ensures visitors of your Preview Deployments must enter a password in order to gain access. (see [below for nested schema](#nestedatt--password_protection)) -- `team_id` (String) The team ID the project exists beneath. ### Read-Only diff --git a/docs/resources/alias.md b/docs/resources/alias.md index 359ee8be..0ee6ca16 100644 --- a/docs/resources/alias.md +++ b/docs/resources/alias.md @@ -25,7 +25,7 @@ An Alias allows a `vercel_deployment` to be accessed through a different URL. ### Optional -- `team_id` (String) The ID of the team the Alias and Deployment exist under. +- `team_id` (String) The ID of the team the Alias and Deployment exist under. Required when configuring a team resource. ### Read-Only diff --git a/docs/resources/deployment.md b/docs/resources/deployment.md index df00f6d0..546e6b9d 100644 --- a/docs/resources/deployment.md +++ b/docs/resources/deployment.md @@ -104,6 +104,7 @@ resource "vercel_deployment" "prebuilt_example" { ### Optional +- `team_id` (String) The team ID to add the deployment to. Required when configuring a team resource. - `delete_on_destroy` (Boolean) Set to true to hard delete the Vercel deployment when destroying the Terraform resource. If unspecified, deployments are retained indefinitely. Note that deleted deployments are not recoverable. - `environment` (Map of String) A map of environment variable names to values. These are specific to a Deployment, and can also be configured on the `vercel_project` resource. - `files` (Map of String) A map of files to be uploaded for the deployment. This should be provided by a `vercel_project_directory` or `vercel_file` data source. Required if `git_source` is not set. @@ -111,7 +112,6 @@ resource "vercel_deployment" "prebuilt_example" { - `production` (Boolean) true if the deployment is a production deployment, meaning production aliases will be assigned. - `project_settings` (Attributes) Project settings that will be applied to the deployment. (see [below for nested schema](#nestedatt--project_settings)) - `ref` (String) The branch or commit hash that should be deployed. Note this will only work if the project is configured to use a Git repository. Required if `ref` is not set. -- `team_id` (String) The team ID to add the deployment to. ### Read-Only diff --git a/docs/resources/dns_record.md b/docs/resources/dns_record.md index 7d6f0e5d..8ba13e34 100644 --- a/docs/resources/dns_record.md +++ b/docs/resources/dns_record.md @@ -104,9 +104,9 @@ resource "vercel_dns_record" "txt" { ### Optional +- `team_id` (String) The team ID that the domain and DNS records belong to. Required when configuring a team resource. - `mx_priority` (Number) The priority of the MX record. The priority specifies the sequence that an email server receives emails. A smaller value indicates a higher priority. - `srv` (Attributes) Settings for an SRV record. (see [below for nested schema](#nestedatt--srv)) -- `team_id` (String) The team ID that the domain and DNS records belong to. - `ttl` (Number) The TTL value in seconds. Must be a number between 60 and 2147483647. If unspecified, it will default to 60 seconds. - `value` (String) The value of the DNS record. The format depends on the 'type' property. For an 'A' record, this should be a valid IPv4 address. diff --git a/docs/resources/project.md b/docs/resources/project.md index 6f2f60b4..098d68b2 100644 --- a/docs/resources/project.md +++ b/docs/resources/project.md @@ -55,6 +55,7 @@ resource "vercel_project" "example" { ### Optional +- `team_id` (String) The team ID to add the project to. Required when configuring a team resource. - `build_command` (String) The build command for this project. If omitted, this value will be automatically detected. - `dev_command` (String) The dev command for this project. If omitted, this value will be automatically detected. - `environment` (Attributes Set) A set of Environment Variables that should be configured for the project. (see [below for nested schema](#nestedatt--environment)) @@ -67,7 +68,6 @@ resource "vercel_project" "example" { - `public_source` (Boolean) By default, visitors to the `/_logs` and `/_src` paths of your Production and Preview Deployments must log in with Vercel (requires being a member of your team) to see the Source, Logs and Deployment Status of your project. Setting `public_source` to `true` disables this behaviour, meaning the Source, Logs and Deployment Status can be publicly viewed. - `root_directory` (String) The name of a directory or relative path to the source code of your project. If omitted, it will default to the project root. - `serverless_function_region` (String) The region on Vercel's network to which your Serverless Functions are deployed. It should be close to any data source your Serverless Function might depend on. A new Deployment is required for your changes to take effect. Please see [Vercel's documentation](https://vercel.com/docs/concepts/edge-network/regions) for a full list of regions. -- `team_id` (String) The team ID to add the project to. - `vercel_authentication` (Attributes) Ensures visitors to your Preview Deployments are logged into Vercel and have a minimum of Viewer access on your team. (see [below for nested schema](#nestedatt--vercel_authentication)) ### Read-Only diff --git a/docs/resources/project_domain.md b/docs/resources/project_domain.md index 466c7fef..bd610cfa 100644 --- a/docs/resources/project_domain.md +++ b/docs/resources/project_domain.md @@ -51,10 +51,10 @@ resource "vercel_project_domain" "example_redirect" { ### Optional +- `team_id` (String) The ID of the team the project exists under. Required when configuring a team resource. - `git_branch` (String) Git branch to link to the project domain. Deployments from this git branch will be assigned the domain name. - `redirect` (String) The domain name that serves as a target destination for redirects. - `redirect_status_code` (Number) The HTTP status code to use when serving as a redirect. -- `team_id` (String) The ID of the team the project exists under. ### Read-Only diff --git a/docs/resources/project_environment_variable.md b/docs/resources/project_environment_variable.md index 234c94f1..0e856b2a 100644 --- a/docs/resources/project_environment_variable.md +++ b/docs/resources/project_environment_variable.md @@ -65,8 +65,8 @@ resource "vercel_project_environment_variable" "example_git_branch" { ### Optional +- `team_id` (String) The ID of the Vercel team. Required when configuring a team resource. - `git_branch` (String) The git branch of the Environment Variable. -- `team_id` (String) The ID of the Vercel team. ### Read-Only From e0e4944c2b158f99a611e7fa7d6fee7c47f65caa Mon Sep 17 00:00:00 2001 From: Kit Foster Date: Wed, 14 Jun 2023 09:55:11 +0200 Subject: [PATCH 2/8] add default team id to docs --- docs/index.md | 3 +++ examples/provider/provider.tf | 3 +++ 2 files changed, 6 insertions(+) diff --git a/docs/index.md b/docs/index.md index cd4aa80a..705c8d21 100644 --- a/docs/index.md +++ b/docs/index.md @@ -34,6 +34,9 @@ provider "vercel" { # Or omit this for the api_token to be read # from the VERCEL_API_TOKEN environment variable api_token = var.vercel_api_token + + # Optional default team ID for all resources + team = "your_team_id" } ``` diff --git a/examples/provider/provider.tf b/examples/provider/provider.tf index d7ee31d2..24f11089 100644 --- a/examples/provider/provider.tf +++ b/examples/provider/provider.tf @@ -14,4 +14,7 @@ provider "vercel" { # Or omit this for the api_token to be read # from the VERCEL_API_TOKEN environment variable api_token = var.vercel_api_token + + # Optional default team ID for all resources + team = "your_team_id" } From ceb3ed4d79f5a4377252da760c19f66291e1fdb0 Mon Sep 17 00:00:00 2001 From: Kit Foster Date: Wed, 14 Jun 2023 10:03:24 +0200 Subject: [PATCH 3/8] change team_id to team_slug_or_id --- docs/index.md | 2 +- examples/provider/provider.tf | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/index.md b/docs/index.md index 705c8d21..055ad7f2 100644 --- a/docs/index.md +++ b/docs/index.md @@ -36,7 +36,7 @@ provider "vercel" { api_token = var.vercel_api_token # Optional default team ID for all resources - team = "your_team_id" + team = "your_team_slug_or_id" } ``` diff --git a/examples/provider/provider.tf b/examples/provider/provider.tf index 24f11089..02fa4ff9 100644 --- a/examples/provider/provider.tf +++ b/examples/provider/provider.tf @@ -16,5 +16,5 @@ provider "vercel" { api_token = var.vercel_api_token # Optional default team ID for all resources - team = "your_team_id" + team = "your_team_slug_or_id" } From 0e8a139cf9c0cf19984477e7ef6698ff74bd5e34 Mon Sep 17 00:00:00 2001 From: Kit Foster Date: Wed, 14 Jun 2023 10:04:10 +0200 Subject: [PATCH 4/8] update comment --- docs/index.md | 2 +- examples/provider/provider.tf | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/index.md b/docs/index.md index 055ad7f2..49cf47d7 100644 --- a/docs/index.md +++ b/docs/index.md @@ -35,7 +35,7 @@ provider "vercel" { # from the VERCEL_API_TOKEN environment variable api_token = var.vercel_api_token - # Optional default team ID for all resources + # Optional default team for all resources team = "your_team_slug_or_id" } ``` diff --git a/examples/provider/provider.tf b/examples/provider/provider.tf index 02fa4ff9..ce63b5fc 100644 --- a/examples/provider/provider.tf +++ b/examples/provider/provider.tf @@ -15,6 +15,6 @@ provider "vercel" { # from the VERCEL_API_TOKEN environment variable api_token = var.vercel_api_token - # Optional default team ID for all resources + # Optional default team for all resources team = "your_team_slug_or_id" } From 425059b776fbd6b48c1299644078c2fc0891d89e Mon Sep 17 00:00:00 2001 From: Kit Foster Date: Wed, 14 Jun 2023 10:22:28 +0200 Subject: [PATCH 5/8] add link to provider team --- docs/data-sources/project.md | 2 +- docs/resources/alias.md | 2 +- docs/resources/deployment.md | 2 +- docs/resources/dns_record.md | 2 +- docs/resources/project.md | 2 +- docs/resources/project_domain.md | 2 +- docs/resources/project_environment_variable.md | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/docs/data-sources/project.md b/docs/data-sources/project.md index 2f004b67..f905249c 100644 --- a/docs/data-sources/project.md +++ b/docs/data-sources/project.md @@ -38,7 +38,7 @@ output "project_id" { ### Optional -- `team_id` (String) The team ID the project exists beneath. Required when configuring a team resource. +- `team_id` (String) The team ID the project exists beneath. Required when configuring a team resource if [team](/providers/vercel/vercel/latest/docs#team) has not been set in the provider. - `password_protection` (Attributes) Ensures visitors of your Preview Deployments must enter a password in order to gain access. (see [below for nested schema](#nestedatt--password_protection)) ### Read-Only diff --git a/docs/resources/alias.md b/docs/resources/alias.md index 0ee6ca16..e78e3c36 100644 --- a/docs/resources/alias.md +++ b/docs/resources/alias.md @@ -25,7 +25,7 @@ An Alias allows a `vercel_deployment` to be accessed through a different URL. ### Optional -- `team_id` (String) The ID of the team the Alias and Deployment exist under. Required when configuring a team resource. +- `team_id` (String) The ID of the team the Alias and Deployment exist under. Required when configuring a team resource if [team](/providers/vercel/vercel/latest/docs#team) has not been set in the provider. ### Read-Only diff --git a/docs/resources/deployment.md b/docs/resources/deployment.md index 546e6b9d..d441ebbb 100644 --- a/docs/resources/deployment.md +++ b/docs/resources/deployment.md @@ -104,7 +104,7 @@ resource "vercel_deployment" "prebuilt_example" { ### Optional -- `team_id` (String) The team ID to add the deployment to. Required when configuring a team resource. +- `team_id` (String) The team ID to add the deployment to. Required when configuring a team resource if [team](/providers/vercel/vercel/latest/docs#team) has not been set in the provider. - `delete_on_destroy` (Boolean) Set to true to hard delete the Vercel deployment when destroying the Terraform resource. If unspecified, deployments are retained indefinitely. Note that deleted deployments are not recoverable. - `environment` (Map of String) A map of environment variable names to values. These are specific to a Deployment, and can also be configured on the `vercel_project` resource. - `files` (Map of String) A map of files to be uploaded for the deployment. This should be provided by a `vercel_project_directory` or `vercel_file` data source. Required if `git_source` is not set. diff --git a/docs/resources/dns_record.md b/docs/resources/dns_record.md index 8ba13e34..c4dce78b 100644 --- a/docs/resources/dns_record.md +++ b/docs/resources/dns_record.md @@ -104,7 +104,7 @@ resource "vercel_dns_record" "txt" { ### Optional -- `team_id` (String) The team ID that the domain and DNS records belong to. Required when configuring a team resource. +- `team_id` (String) The team ID that the domain and DNS records belong to. Required when configuring a team resource if [team](/providers/vercel/vercel/latest/docs#team) has not been set in the provider. - `mx_priority` (Number) The priority of the MX record. The priority specifies the sequence that an email server receives emails. A smaller value indicates a higher priority. - `srv` (Attributes) Settings for an SRV record. (see [below for nested schema](#nestedatt--srv)) - `ttl` (Number) The TTL value in seconds. Must be a number between 60 and 2147483647. If unspecified, it will default to 60 seconds. diff --git a/docs/resources/project.md b/docs/resources/project.md index 098d68b2..ad445e32 100644 --- a/docs/resources/project.md +++ b/docs/resources/project.md @@ -55,7 +55,7 @@ resource "vercel_project" "example" { ### Optional -- `team_id` (String) The team ID to add the project to. Required when configuring a team resource. +- `team_id` (String) The team ID to add the project to. Required when configuring a team resource if [team](/providers/vercel/vercel/latest/docs#team) has not been set in the provider. - `build_command` (String) The build command for this project. If omitted, this value will be automatically detected. - `dev_command` (String) The dev command for this project. If omitted, this value will be automatically detected. - `environment` (Attributes Set) A set of Environment Variables that should be configured for the project. (see [below for nested schema](#nestedatt--environment)) diff --git a/docs/resources/project_domain.md b/docs/resources/project_domain.md index bd610cfa..f7c384dc 100644 --- a/docs/resources/project_domain.md +++ b/docs/resources/project_domain.md @@ -51,7 +51,7 @@ resource "vercel_project_domain" "example_redirect" { ### Optional -- `team_id` (String) The ID of the team the project exists under. Required when configuring a team resource. +- `team_id` (String) The ID of the team the project exists under. Required when configuring a team resource if [team](/providers/vercel/vercel/latest/docs#team) has not been set in the provider. - `git_branch` (String) Git branch to link to the project domain. Deployments from this git branch will be assigned the domain name. - `redirect` (String) The domain name that serves as a target destination for redirects. - `redirect_status_code` (Number) The HTTP status code to use when serving as a redirect. diff --git a/docs/resources/project_environment_variable.md b/docs/resources/project_environment_variable.md index 0e856b2a..04a5d29c 100644 --- a/docs/resources/project_environment_variable.md +++ b/docs/resources/project_environment_variable.md @@ -65,7 +65,7 @@ resource "vercel_project_environment_variable" "example_git_branch" { ### Optional -- `team_id` (String) The ID of the Vercel team. Required when configuring a team resource. +- `team_id` (String) The ID of the Vercel team. Required when configuring a team resource if [team](/providers/vercel/vercel/latest/docs#team) has not been set in the provider. - `git_branch` (String) The git branch of the Environment Variable. ### Read-Only From 95ecb62a31f2638381442ae217a43872780ca8b7 Mon Sep 17 00:00:00 2001 From: Kit Foster Date: Wed, 14 Jun 2023 10:23:24 +0200 Subject: [PATCH 6/8] "default team" --- docs/data-sources/project.md | 2 +- docs/resources/alias.md | 2 +- docs/resources/deployment.md | 2 +- docs/resources/dns_record.md | 2 +- docs/resources/project.md | 2 +- docs/resources/project_domain.md | 2 +- docs/resources/project_environment_variable.md | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/docs/data-sources/project.md b/docs/data-sources/project.md index f905249c..1f041682 100644 --- a/docs/data-sources/project.md +++ b/docs/data-sources/project.md @@ -38,7 +38,7 @@ output "project_id" { ### Optional -- `team_id` (String) The team ID the project exists beneath. Required when configuring a team resource if [team](/providers/vercel/vercel/latest/docs#team) has not been set in the provider. +- `team_id` (String) The team ID the project exists beneath. Required when configuring a team resource if a default [team](/providers/vercel/vercel/latest/docs#team) has not been set in the provider. - `password_protection` (Attributes) Ensures visitors of your Preview Deployments must enter a password in order to gain access. (see [below for nested schema](#nestedatt--password_protection)) ### Read-Only diff --git a/docs/resources/alias.md b/docs/resources/alias.md index e78e3c36..aeb03aa8 100644 --- a/docs/resources/alias.md +++ b/docs/resources/alias.md @@ -25,7 +25,7 @@ An Alias allows a `vercel_deployment` to be accessed through a different URL. ### Optional -- `team_id` (String) The ID of the team the Alias and Deployment exist under. Required when configuring a team resource if [team](/providers/vercel/vercel/latest/docs#team) has not been set in the provider. +- `team_id` (String) The ID of the team the Alias and Deployment exist under. Required when configuring a team resource if a default [team](/providers/vercel/vercel/latest/docs#team) has not been set in the provider. ### Read-Only diff --git a/docs/resources/deployment.md b/docs/resources/deployment.md index d441ebbb..dad81d6b 100644 --- a/docs/resources/deployment.md +++ b/docs/resources/deployment.md @@ -104,7 +104,7 @@ resource "vercel_deployment" "prebuilt_example" { ### Optional -- `team_id` (String) The team ID to add the deployment to. Required when configuring a team resource if [team](/providers/vercel/vercel/latest/docs#team) has not been set in the provider. +- `team_id` (String) The team ID to add the deployment to. Required when configuring a team resource if a default [team](/providers/vercel/vercel/latest/docs#team) has not been set in the provider. - `delete_on_destroy` (Boolean) Set to true to hard delete the Vercel deployment when destroying the Terraform resource. If unspecified, deployments are retained indefinitely. Note that deleted deployments are not recoverable. - `environment` (Map of String) A map of environment variable names to values. These are specific to a Deployment, and can also be configured on the `vercel_project` resource. - `files` (Map of String) A map of files to be uploaded for the deployment. This should be provided by a `vercel_project_directory` or `vercel_file` data source. Required if `git_source` is not set. diff --git a/docs/resources/dns_record.md b/docs/resources/dns_record.md index c4dce78b..27ff6e80 100644 --- a/docs/resources/dns_record.md +++ b/docs/resources/dns_record.md @@ -104,7 +104,7 @@ resource "vercel_dns_record" "txt" { ### Optional -- `team_id` (String) The team ID that the domain and DNS records belong to. Required when configuring a team resource if [team](/providers/vercel/vercel/latest/docs#team) has not been set in the provider. +- `team_id` (String) The team ID that the domain and DNS records belong to. Required when configuring a team resource if a default [team](/providers/vercel/vercel/latest/docs#team) has not been set in the provider. - `mx_priority` (Number) The priority of the MX record. The priority specifies the sequence that an email server receives emails. A smaller value indicates a higher priority. - `srv` (Attributes) Settings for an SRV record. (see [below for nested schema](#nestedatt--srv)) - `ttl` (Number) The TTL value in seconds. Must be a number between 60 and 2147483647. If unspecified, it will default to 60 seconds. diff --git a/docs/resources/project.md b/docs/resources/project.md index ad445e32..22e8bfd6 100644 --- a/docs/resources/project.md +++ b/docs/resources/project.md @@ -55,7 +55,7 @@ resource "vercel_project" "example" { ### Optional -- `team_id` (String) The team ID to add the project to. Required when configuring a team resource if [team](/providers/vercel/vercel/latest/docs#team) has not been set in the provider. +- `team_id` (String) The team ID to add the project to. Required when configuring a team resource if a default [team](/providers/vercel/vercel/latest/docs#team) has not been set in the provider. - `build_command` (String) The build command for this project. If omitted, this value will be automatically detected. - `dev_command` (String) The dev command for this project. If omitted, this value will be automatically detected. - `environment` (Attributes Set) A set of Environment Variables that should be configured for the project. (see [below for nested schema](#nestedatt--environment)) diff --git a/docs/resources/project_domain.md b/docs/resources/project_domain.md index f7c384dc..3d750d9e 100644 --- a/docs/resources/project_domain.md +++ b/docs/resources/project_domain.md @@ -51,7 +51,7 @@ resource "vercel_project_domain" "example_redirect" { ### Optional -- `team_id` (String) The ID of the team the project exists under. Required when configuring a team resource if [team](/providers/vercel/vercel/latest/docs#team) has not been set in the provider. +- `team_id` (String) The ID of the team the project exists under. Required when configuring a team resource if a default [team](/providers/vercel/vercel/latest/docs#team) has not been set in the provider. - `git_branch` (String) Git branch to link to the project domain. Deployments from this git branch will be assigned the domain name. - `redirect` (String) The domain name that serves as a target destination for redirects. - `redirect_status_code` (Number) The HTTP status code to use when serving as a redirect. diff --git a/docs/resources/project_environment_variable.md b/docs/resources/project_environment_variable.md index 04a5d29c..180c928d 100644 --- a/docs/resources/project_environment_variable.md +++ b/docs/resources/project_environment_variable.md @@ -65,7 +65,7 @@ resource "vercel_project_environment_variable" "example_git_branch" { ### Optional -- `team_id` (String) The ID of the Vercel team. Required when configuring a team resource if [team](/providers/vercel/vercel/latest/docs#team) has not been set in the provider. +- `team_id` (String) The ID of the Vercel team. Required when configuring a team resource if a default [team](/providers/vercel/vercel/latest/docs#team) has not been set in the provider. - `git_branch` (String) The git branch of the Environment Variable. ### Read-Only From b735a8a491033252390b513d7da525f2971888ba Mon Sep 17 00:00:00 2001 From: balazs4 Date: Mon, 19 Jun 2023 11:29:01 +0200 Subject: [PATCH 7/8] add dependency to gh action to reduce api-rate-limit --- .github/workflows/test.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index a8eb4652..04b4f0d5 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -48,6 +48,7 @@ jobs: test: name: Matrix Test + needs: [ build ] timeout-minutes: 15 strategy: max-parallel: 1 From c4b836a8a9cb285733e361ac8339c60e63c473ae Mon Sep 17 00:00:00 2001 From: balazs4 Date: Mon, 19 Jun 2023 11:51:57 +0200 Subject: [PATCH 8/8] add updated team_id note into Descriptions --- docs/data-sources/alias.md | 2 +- docs/data-sources/project.md | 2 +- docs/index.md | 2 +- docs/resources/alias.md | 2 +- docs/resources/deployment.md | 2 +- docs/resources/dns_record.md | 2 +- docs/resources/project.md | 2 +- docs/resources/project_domain.md | 2 +- docs/resources/project_environment_variable.md | 2 +- vercel/data_source_alias.go | 2 +- vercel/data_source_project.go | 2 +- vercel/resource_alias.go | 2 +- vercel/resource_deployment.go | 2 +- vercel/resource_dns_record.go | 2 +- vercel/resource_project.go | 2 +- vercel/resource_project_domain.go | 2 +- vercel/resource_project_environment_variable.go | 2 +- 17 files changed, 17 insertions(+), 17 deletions(-) diff --git a/docs/data-sources/alias.md b/docs/data-sources/alias.md index 18fc56bc..3b7c7fa6 100644 --- a/docs/data-sources/alias.md +++ b/docs/data-sources/alias.md @@ -24,7 +24,7 @@ An Alias allows a `vercel_deployment` to be accessed through a different URL. ### Optional -- `team_id` (String) The ID of the team the Alias and Deployment exist under. +- `team_id` (String) The ID of the team the Alias and Deployment exist under. Required when configuring a team resource if a default team has not been set in the provider. ### Read-Only diff --git a/docs/data-sources/project.md b/docs/data-sources/project.md index 7192e133..cc165bdb 100644 --- a/docs/data-sources/project.md +++ b/docs/data-sources/project.md @@ -38,8 +38,8 @@ output "project_id" { ### Optional -- `team_id` (String) The team ID the project exists beneath. Required when configuring a team resource if a default [team](/providers/vercel/vercel/latest/docs#team) has not been set in the provider. - `password_protection` (Attributes) Ensures visitors of your Preview Deployments must enter a password in order to gain access. (see [below for nested schema](#nestedatt--password_protection)) +- `team_id` (String) The team ID the project exists beneath. Required when configuring a team resource if a default team has not been set in the provider. ### Read-Only diff --git a/docs/index.md b/docs/index.md index 49cf47d7..7a517e1a 100644 --- a/docs/index.md +++ b/docs/index.md @@ -34,7 +34,7 @@ provider "vercel" { # Or omit this for the api_token to be read # from the VERCEL_API_TOKEN environment variable api_token = var.vercel_api_token - + # Optional default team for all resources team = "your_team_slug_or_id" } diff --git a/docs/resources/alias.md b/docs/resources/alias.md index aeb03aa8..62b03922 100644 --- a/docs/resources/alias.md +++ b/docs/resources/alias.md @@ -25,7 +25,7 @@ An Alias allows a `vercel_deployment` to be accessed through a different URL. ### Optional -- `team_id` (String) The ID of the team the Alias and Deployment exist under. Required when configuring a team resource if a default [team](/providers/vercel/vercel/latest/docs#team) has not been set in the provider. +- `team_id` (String) The ID of the team the Alias and Deployment exist under. Required when configuring a team resource if a default team has not been set in the provider. ### Read-Only diff --git a/docs/resources/deployment.md b/docs/resources/deployment.md index dad81d6b..92399b46 100644 --- a/docs/resources/deployment.md +++ b/docs/resources/deployment.md @@ -104,7 +104,6 @@ resource "vercel_deployment" "prebuilt_example" { ### Optional -- `team_id` (String) The team ID to add the deployment to. Required when configuring a team resource if a default [team](/providers/vercel/vercel/latest/docs#team) has not been set in the provider. - `delete_on_destroy` (Boolean) Set to true to hard delete the Vercel deployment when destroying the Terraform resource. If unspecified, deployments are retained indefinitely. Note that deleted deployments are not recoverable. - `environment` (Map of String) A map of environment variable names to values. These are specific to a Deployment, and can also be configured on the `vercel_project` resource. - `files` (Map of String) A map of files to be uploaded for the deployment. This should be provided by a `vercel_project_directory` or `vercel_file` data source. Required if `git_source` is not set. @@ -112,6 +111,7 @@ resource "vercel_deployment" "prebuilt_example" { - `production` (Boolean) true if the deployment is a production deployment, meaning production aliases will be assigned. - `project_settings` (Attributes) Project settings that will be applied to the deployment. (see [below for nested schema](#nestedatt--project_settings)) - `ref` (String) The branch or commit hash that should be deployed. Note this will only work if the project is configured to use a Git repository. Required if `ref` is not set. +- `team_id` (String) The team ID to add the deployment to. Required when configuring a team resource if a default team has not been set in the provider. ### Read-Only diff --git a/docs/resources/dns_record.md b/docs/resources/dns_record.md index af2245a7..88a8e821 100644 --- a/docs/resources/dns_record.md +++ b/docs/resources/dns_record.md @@ -104,9 +104,9 @@ resource "vercel_dns_record" "txt" { ### Optional -- `team_id` (String) The team ID that the domain and DNS records belong to. Required when configuring a team resource if a default [team](/providers/vercel/vercel/latest/docs#team) has not been set in the provider. - `mx_priority` (Number) The priority of the MX record. The priority specifies the sequence that an email server receives emails. A smaller value indicates a higher priority. - `srv` (Attributes) Settings for an SRV record. (see [below for nested schema](#nestedatt--srv)) +- `team_id` (String) The team ID that the domain and DNS records belong to. Required when configuring a team resource if a default team has not been set in the provider. - `ttl` (Number) The TTL value in seconds. Must be a number between 60 and 2147483647. If unspecified, it will default to 60 seconds. - `value` (String) The value of the DNS record. The format depends on the 'type' property. For an 'A' record, this should be a valid IPv4 address. diff --git a/docs/resources/project.md b/docs/resources/project.md index 344bc09d..8a048dab 100644 --- a/docs/resources/project.md +++ b/docs/resources/project.md @@ -55,7 +55,6 @@ resource "vercel_project" "example" { ### Optional -- `team_id` (String) The team ID to add the project to. Required when configuring a team resource if a default [team](/providers/vercel/vercel/latest/docs#team) has not been set in the provider. - `build_command` (String) The build command for this project. If omitted, this value will be automatically detected. - `dev_command` (String) The dev command for this project. If omitted, this value will be automatically detected. - `environment` (Attributes Set) A set of Environment Variables that should be configured for the project. (see [below for nested schema](#nestedatt--environment)) @@ -68,6 +67,7 @@ resource "vercel_project" "example" { - `public_source` (Boolean) By default, visitors to the `/_logs` and `/_src` paths of your Production and Preview Deployments must log in with Vercel (requires being a member of your team) to see the Source, Logs and Deployment Status of your project. Setting `public_source` to `true` disables this behaviour, meaning the Source, Logs and Deployment Status can be publicly viewed. - `root_directory` (String) The name of a directory or relative path to the source code of your project. If omitted, it will default to the project root. - `serverless_function_region` (String) The region on Vercel's network to which your Serverless Functions are deployed. It should be close to any data source your Serverless Function might depend on. A new Deployment is required for your changes to take effect. Please see [Vercel's documentation](https://vercel.com/docs/concepts/edge-network/regions) for a full list of regions. +- `team_id` (String) The team ID to add the project to. Required when configuring a team resource if a default team has not been set in the provider. - `vercel_authentication` (Attributes) Ensures visitors to your Preview Deployments are logged into Vercel and have a minimum of Viewer access on your team. (see [below for nested schema](#nestedatt--vercel_authentication)) ### Read-Only diff --git a/docs/resources/project_domain.md b/docs/resources/project_domain.md index 3d750d9e..36f14583 100644 --- a/docs/resources/project_domain.md +++ b/docs/resources/project_domain.md @@ -51,10 +51,10 @@ resource "vercel_project_domain" "example_redirect" { ### Optional -- `team_id` (String) The ID of the team the project exists under. Required when configuring a team resource if a default [team](/providers/vercel/vercel/latest/docs#team) has not been set in the provider. - `git_branch` (String) Git branch to link to the project domain. Deployments from this git branch will be assigned the domain name. - `redirect` (String) The domain name that serves as a target destination for redirects. - `redirect_status_code` (Number) The HTTP status code to use when serving as a redirect. +- `team_id` (String) The ID of the team the project exists under. Required when configuring a team resource if a default team has not been set in the provider. ### Read-Only diff --git a/docs/resources/project_environment_variable.md b/docs/resources/project_environment_variable.md index 180c928d..ae5c0028 100644 --- a/docs/resources/project_environment_variable.md +++ b/docs/resources/project_environment_variable.md @@ -65,8 +65,8 @@ resource "vercel_project_environment_variable" "example_git_branch" { ### Optional -- `team_id` (String) The ID of the Vercel team. Required when configuring a team resource if a default [team](/providers/vercel/vercel/latest/docs#team) has not been set in the provider. - `git_branch` (String) The git branch of the Environment Variable. +- `team_id` (String) The ID of the Vercel team.Required when configuring a team resource if a default team has not been set in the provider. ### Read-Only diff --git a/vercel/data_source_alias.go b/vercel/data_source_alias.go index 3af2f7a0..14fe8704 100644 --- a/vercel/data_source_alias.go +++ b/vercel/data_source_alias.go @@ -56,7 +56,7 @@ An Alias allows a ` + "`vercel_deployment` to be accessed through a different UR "team_id": schema.StringAttribute{ Optional: true, Computed: true, - Description: "The ID of the team the Alias and Deployment exist under.", + Description: "The ID of the team the Alias and Deployment exist under. Required when configuring a team resource if a default team has not been set in the provider.", }, "alias": schema.StringAttribute{ Required: true, diff --git a/vercel/data_source_project.go b/vercel/data_source_project.go index 6cf602fb..2c6bb7b4 100644 --- a/vercel/data_source_project.go +++ b/vercel/data_source_project.go @@ -62,7 +62,7 @@ For more detailed information, please see the [Vercel documentation](https://ver "team_id": schema.StringAttribute{ Optional: true, Computed: true, - Description: "The team ID the project exists beneath.", + Description: "The team ID the project exists beneath. Required when configuring a team resource if a default team has not been set in the provider.", }, "name": schema.StringAttribute{ Required: true, diff --git a/vercel/resource_alias.go b/vercel/resource_alias.go index c091ee24..533e92d5 100644 --- a/vercel/resource_alias.go +++ b/vercel/resource_alias.go @@ -69,7 +69,7 @@ An Alias allows a ` + "`vercel_deployment` to be accessed through a different UR "team_id": schema.StringAttribute{ Optional: true, Computed: true, - Description: "The ID of the team the Alias and Deployment exist under.", + Description: "The ID of the team the Alias and Deployment exist under. Required when configuring a team resource if a default team has not been set in the provider.", PlanModifiers: []planmodifier.String{stringplanmodifier.RequiresReplace()}, }, "id": schema.StringAttribute{ diff --git a/vercel/resource_deployment.go b/vercel/resource_deployment.go index d2d81f2d..d99f11fa 100644 --- a/vercel/resource_deployment.go +++ b/vercel/resource_deployment.go @@ -90,7 +90,7 @@ terraform to your Deployment. ElementType: types.StringType, }, "team_id": schema.StringAttribute{ - Description: "The team ID to add the deployment to.", + Description: "The team ID to add the deployment to. Required when configuring a team resource if a default team has not been set in the provider.", Optional: true, Computed: true, PlanModifiers: []planmodifier.String{stringplanmodifier.RequiresReplace(), stringplanmodifier.UseStateForUnknown()}, diff --git a/vercel/resource_dns_record.go b/vercel/resource_dns_record.go index 52b9a5f1..3e0b364d 100644 --- a/vercel/resource_dns_record.go +++ b/vercel/resource_dns_record.go @@ -67,7 +67,7 @@ For more detailed information, please see the [Vercel documentation](https://ver "team_id": schema.StringAttribute{ Optional: true, Computed: true, - Description: "The team ID that the domain and DNS records belong to.", + Description: "The team ID that the domain and DNS records belong to. Required when configuring a team resource if a default team has not been set in the provider.", PlanModifiers: []planmodifier.String{stringplanmodifier.RequiresReplace(), stringplanmodifier.UseStateForUnknown()}, }, "domain": schema.StringAttribute{ diff --git a/vercel/resource_project.go b/vercel/resource_project.go index 133f6c9b..f8d466bd 100644 --- a/vercel/resource_project.go +++ b/vercel/resource_project.go @@ -70,7 +70,7 @@ At this time you cannot use a Vercel Project resource with in-line ` + "`environ Optional: true, Computed: true, PlanModifiers: []planmodifier.String{stringplanmodifier.RequiresReplace(), stringplanmodifier.UseStateForUnknown()}, - Description: "The team ID to add the project to.", + Description: "The team ID to add the project to. Required when configuring a team resource if a default team has not been set in the provider.", }, "name": schema.StringAttribute{ Required: true, diff --git a/vercel/resource_project_domain.go b/vercel/resource_project_domain.go index 53f910b3..28abb258 100644 --- a/vercel/resource_project_domain.go +++ b/vercel/resource_project_domain.go @@ -68,7 +68,7 @@ By default, Project Domains will be automatically applied to any ` + "`productio Optional: true, Computed: true, PlanModifiers: []planmodifier.String{stringplanmodifier.RequiresReplace(), stringplanmodifier.UseStateForUnknown()}, - Description: "The ID of the team the project exists under.", + Description: "The ID of the team the project exists under. Required when configuring a team resource if a default team has not been set in the provider.", }, "id": schema.StringAttribute{ Computed: true, diff --git a/vercel/resource_project_environment_variable.go b/vercel/resource_project_environment_variable.go index 7f7da208..f9f49ca0 100644 --- a/vercel/resource_project_environment_variable.go +++ b/vercel/resource_project_environment_variable.go @@ -95,7 +95,7 @@ At this time you cannot use a Vercel Project resource with in-line ` + "`environ "team_id": schema.StringAttribute{ Optional: true, Computed: true, - Description: "The ID of the Vercel team.", + Description: "The ID of the Vercel team.Required when configuring a team resource if a default team has not been set in the provider.", PlanModifiers: []planmodifier.String{stringplanmodifier.RequiresReplace(), stringplanmodifier.UseStateForUnknown()}, }, "id": schema.StringAttribute{