Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add missing required versions strings to Teleport Terraform resources #47631

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions docs/pages/reference/terraform-provider/resources/app.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ description: This page describes the supported values of the teleport_app resour
# Teleport App
resource "teleport_app" "example" {
version = "v3"
metadata = {
name = "example"
description = "Test app"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ description: This page describes the supported values of the teleport_auth_prefe
# AuthPreference resource
resource "teleport_auth_preference" "example" {
version = "v2"
metadata = {
description = "Auth preference"
labels = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ description: This page describes the supported values of the teleport_cluster_ma
# Teleport Cluster Networking config
resource "teleport_cluster_maintenance_config" "example" {
version = "v1"
metadata = {
description = "Maintenance config"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ description: This page describes the supported values of the teleport_cluster_ne
# Teleport Cluster Networking config
resource "teleport_cluster_networking_config" "example" {
version = "v2"
metadata = {
description = "Networking config"
labels = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ description: This page describes the supported values of the teleport_database r
# Teleport Database
resource "teleport_database" "example" {
version = "v3"
metadata = {
name = "example"
description = "Test database"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ description: This page describes the supported values of the teleport_github_con
variable "github_secret" {}
resource "teleport_github_connector" "github" {
version = "v3"
# This section tells Terraform that role example must be created before the GitHub connector
depends_on = [
teleport_role.example
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ description: This page describes the supported values of the teleport_oidc_conne
variable "oidc_secret" {}
resource "teleport_oidc_connector" "example" {
version = "v3"
metadata = {
name = "example"
labels = {
Expand Down
1 change: 1 addition & 0 deletions docs/pages/reference/terraform-provider/resources/role.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ description: This page describes the supported values of the teleport_role resou
# Teleport Role resource
resource "teleport_role" "example" {
version = "v7"
metadata = {
name = "example"
description = "Example Teleport Role"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ description: This page describes the supported values of the teleport_saml_conne
# Please note that the SAML connector will work in Teleport Enterprise only.
resource "teleport_saml_connector" "example" {
version = "v2"
# This block will tell Terraform to never update private key from our side if a keys are managed
# from an outside of Terraform.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ description: This page describes the supported values of the teleport_session_re
# Teleport session recording config
resource "teleport_session_recording_config" "example" {
version = "v2"
metadata = {
description = "Session recording config"
labels = {
Expand Down
1 change: 1 addition & 0 deletions docs/pages/reference/terraform-provider/resources/user.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ description: This page describes the supported values of the teleport_user resou
# Teleport User resource
resource "teleport_user" "example" {
version = "v2"
# Tells Terraform that the role could not be destroyed while this user exists
depends_on = [
teleport_role.example
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Teleport App

resource "teleport_app" "example" {
version = "v3"
metadata = {
name = "example"
description = "Test app"
Expand All @@ -12,4 +13,4 @@ resource "teleport_app" "example" {
spec = {
uri = "localhost:3000"
}
}
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# AuthPreference resource

resource "teleport_auth_preference" "example" {
version = "v2"
metadata = {
description = "Auth preference"
labels = {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Teleport Cluster Networking config

resource "teleport_cluster_maintenance_config" "example" {
version = "v1"
metadata = {
description = "Maintenance config"
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Teleport Cluster Networking config

resource "teleport_cluster_networking_config" "example" {
version = "v2"
metadata = {
description = "Networking config"
labels = {
Expand All @@ -12,4 +13,4 @@ resource "teleport_cluster_networking_config" "example" {
spec = {
client_idle_timeout = "1h"
}
}
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Teleport Database

resource "teleport_database" "example" {
version = "v3"
metadata = {
name = "example"
description = "Test database"
Expand All @@ -13,4 +14,4 @@ resource "teleport_database" "example" {
protocol = "postgres"
uri = "localhost"
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
variable "github_secret" {}

resource "teleport_github_connector" "github" {
version = "v3"
# This section tells Terraform that role example must be created before the GitHub connector
depends_on = [
teleport_role.example
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
variable "oidc_secret" {}

resource "teleport_oidc_connector" "example" {
version = "v3"
metadata = {
name = "example"
labels = {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Teleport Role resource

resource "teleport_role" "example" {
version = "v7"
metadata = {
name = "example"
description = "Example Teleport Role"
Expand Down Expand Up @@ -47,4 +48,4 @@ resource "teleport_role" "example" {
logins = ["anonymous"]
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
# Please note that the SAML connector will work in Teleport Enterprise only.

resource "teleport_saml_connector" "example" {
version = "v2"
# This block will tell Terraform to never update private key from our side if a keys are managed
# from an outside of Terraform.

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Teleport session recording config

resource "teleport_session_recording_config" "example" {
version = "v2"
metadata = {
description = "Session recording config"
labels = {
Expand All @@ -12,4 +13,4 @@ resource "teleport_session_recording_config" "example" {
spec = {
proxy_checks_host_keys = true
}
}
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Teleport User resource

resource "teleport_user" "example" {
version = "v2"
# Tells Terraform that the role could not be destroyed while this user exists
depends_on = [
teleport_role.example
Expand Down Expand Up @@ -40,4 +41,4 @@ resource "teleport_user" "example" {
username = "example"
}]
}
}
}
Loading