Skip to content

Commit

Permalink
CDPCP-12359 Open security group en express onboarding clusters
Browse files Browse the repository at this point in the history
  • Loading branch information
daszabo committed Jul 12, 2024
1 parent a0fd18d commit 62d1b10
Show file tree
Hide file tree
Showing 6 changed files with 70 additions and 2 deletions.
21 changes: 19 additions & 2 deletions aws/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ module "cdp_deploy" {
datalake_scale = var.datalake_scale
datalake_recipes = var.datalake_recipes
freeipa_recipes = var.freeipa_recipes

environment_async_creation = var.environment_async_creation
datalake_async_creation = var.datalake_async_creation

Expand Down Expand Up @@ -93,10 +93,27 @@ module "cdp_deploy" {

# Use the CDP Terraform Provider to find the xaccount account and external ids
terraform {
required_version = ">= 1.5.7"
required_providers {
cdp = {
source = "cloudera/cdp"
version = "0.5.8"
version = ">=5.8"
}
aws = {
source = "hashicorp/aws"
version = ">= 5.58.0"
}
tls = {
source = "hashicorp/tls"
version = ">= 4.0.5"
}
local = {
source = "hashicorp/local"
version = ">= 2.5.1"
}
http = {
source = "hashicorp/http"
version = ">= 3.4.3"
}
}
}
Expand Down
1 change: 1 addition & 0 deletions aws/quickstart.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ export TF_VAR_env_tags='{"deploy_tool": "express-tf", "env_prefix": "'"$2"'"}'
export TF_VAR_create_vpc_endpoints="false"
export TF_VAR_environment_async_creation="true"
export TF_VAR_datalake_async_creation="true"
export TF_VAR_ingress_extra_cidrs_and_ports='{ cidrs = ["0.0.0.0/0"], ports = [443, 22] }'

# Install Terraform
curl -fsSL https://releases.hashicorp.com/terraform/1.7.1/terraform_1.7.1_linux_amd64.zip -o terraform.zip
Expand Down
26 changes: 26 additions & 0 deletions azure/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,32 @@
# See the License for the specific language governing permissions and
# limitations under the License.

terraform {
required_version = ">= 1.5.7"
required_providers {
azurerm = {
source = "hashicorp/azurerm"
version = ">= 3.111.0"
}
azuread = {
source = "hashicorp/azuread"
version = ">= 2.53.1"
}
tls = {
source = "hashicorp/tls"
version = ">= 4.0.5"
}
local = {
source = "hashicorp/local"
version = ">= 2.5.1"
}
http = {
source = "hashicorp/http"
version = ">= 3.4.3"
}
}
}

provider "azurerm" {
features {
resource_group {
Expand Down
1 change: 1 addition & 0 deletions azure/quickstart.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ export TF_VAR_deployment_template="${4:-"semi-private"}"
export TF_VAR_env_tags='{"deploy_tool": "express-tf", "env_prefix": "'"$2"'"}'
export TF_VAR_environment_async_creation="true"
export TF_VAR_datalake_async_creation="true"
export TF_VAR_ingress_extra_cidrs_and_ports='{ cidrs = ["0.0.0.0/0], ports = [443, 22] }'

# Checkout CDP Quickstart Repository
git clone --branch v0.6.1 https://github.com/cloudera-labs/cdp-tf-quickstarts.git
Expand Down
22 changes: 22 additions & 0 deletions gcp/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,28 @@
# See the License for the specific language governing permissions and
# limitations under the License.

terraform {
required_version = ">= 1.5.7"
required_providers {
google = {
source = "hashicorp/google"
version = ">= 5.37.0"
}
tls = {
source = "hashicorp/tls"
version = ">= 4.0.5"
}
local = {
source = "hashicorp/local"
version = ">= 2.5.1"
}
http = {
source = "hashicorp/http"
version = ">= 3.4.3"
}
}
}

provider "google" {
project = var.gcp_project
region = var.gcp_region
Expand Down
1 change: 1 addition & 0 deletions gcp/quickstart.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ export TF_VAR_deployment_template="${5:-"semi-private"}"
export TF_VAR_env_tags='{"deploy_tool": "express-tf", "env_prefix": "'"$2"'"}'
export TF_VAR_environment_async_creation="true"
export TF_VAR_datalake_async_creation="true"
export TF_VAR_ingress_extra_cidrs_and_ports='{ cidrs = ["0.0.0.0/0"], ports = [443, 22] }'

# Checkout CDP Quickstart Repository
git clone --branch v0.6.1 https://github.com/cloudera-labs/cdp-tf-quickstarts.git
Expand Down

0 comments on commit 62d1b10

Please sign in to comment.