Skip to content

Commit

Permalink
ENG-9629: Use version constraint ~> for guides (v2) (#298)
Browse files Browse the repository at this point in the history
* Use version constraint ~> for guides

* Fix typo

* Add missing arguments in provider for aws SM guide
  • Loading branch information
Yowgf authored Oct 6, 2022
1 parent 8950ff1 commit 92352ee
Show file tree
Hide file tree
Showing 7 changed files with 36 additions and 10 deletions.
4 changes: 2 additions & 2 deletions docs/guides/mongodb_cluster_okta_idp.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ terraform {
required_providers {
cyral = {
source = "cyralinc/cyral"
version = ">= 2.7.0"
version = "~> 2.7"
}
okta = {
source = "okta/okta"
Expand Down Expand Up @@ -300,7 +300,7 @@ locals {
module "cyral_idp_okta" {
source = "cyralinc/idp/okta"
version = ">= 3.0.2"
version = "~> 3.0"
tenant = "default"
Expand Down
17 changes: 15 additions & 2 deletions docs/guides/native_credentials_aws_sm.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,23 @@ locals {
}
}
# See the Cyral provider documentation for more
# information on how to initialize it correctly.
terraform {
required_providers {
cyral = {
source = "cyralinc/cyral"
version = "~> 2.10"
}
}
}
# Follow the instructions in the Cyral Terraform Provider page to set
# up the credentials:
#
# * https://registry.terraform.io/providers/cyralinc/cyral/latest/docs
provider "cyral" {
control_plane = "mycontrolplane.cyral.com:8000"
client_id = ""
client_secret = ""
}
resource "cyral_repository" "mongodb_repo" {
Expand Down
2 changes: 1 addition & 1 deletion docs/guides/setup_cp_and_deploy_sidecar.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ terraform {
required_providers {
cyral = {
source = "cyralinc/cyral"
version = ">= 2.7.0"
version = "~> 2.7"
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion examples/guides/mongodb_cluster_okta_idp_okta.tf
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ locals {

module "cyral_idp_okta" {
source = "cyralinc/idp/okta"
version = ">= 3.0.2"
version = "~> 3.0"

tenant = "default"

Expand Down
2 changes: 1 addition & 1 deletion examples/guides/mongodb_cluster_okta_idp_versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ terraform {
required_providers {
cyral = {
source = "cyralinc/cyral"
version = ">= 2.7.0"
version = "~> 2.7"
}
okta = {
source = "okta/okta"
Expand Down
17 changes: 15 additions & 2 deletions examples/guides/native_credentials_aws_sm.tf
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,23 @@ locals {
}
}

# See the Cyral provider documentation for more
# information on how to initialize it correctly.
terraform {
required_providers {
cyral = {
source = "cyralinc/cyral"
version = "~> 2.10"
}
}
}

# Follow the instructions in the Cyral Terraform Provider page to set
# up the credentials:
#
# * https://registry.terraform.io/providers/cyralinc/cyral/latest/docs
provider "cyral" {
control_plane = "mycontrolplane.cyral.com:8000"
client_id = ""
client_secret = ""
}

resource "cyral_repository" "mongodb_repo" {
Expand Down
2 changes: 1 addition & 1 deletion examples/guides/setup_cp_and_deploy_sidecar.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ terraform {
required_providers {
cyral = {
source = "cyralinc/cyral"
version = ">= 2.7.0"
version = "~> 2.7"
}
}
}
Expand Down

0 comments on commit 92352ee

Please sign in to comment.