Skip to content

Commit

Permalink
Added device login parameters to cdp login (#28)
Browse files Browse the repository at this point in the history
  • Loading branch information
daszabo authored and jimright committed May 31, 2024
1 parent c7b6dec commit a0fd18d
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
5 changes: 3 additions & 2 deletions aws/quickstart.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@

export TF_VAR_aws_region="${1:-""}"
export TF_VAR_env_prefix="${2:-""}"
export TF_VAR_deployment_template="${3:-"semi-private"}"
export ACCOUNT_ID="${3:-""}"
export TF_VAR_deployment_template="${4:-"semi-private"}"
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"
Expand All @@ -34,7 +35,7 @@ cd cdp-tf-quickstarts/aws
# Install CDP CLI and Log In
pip install cdpcli

cdp login
cdp login --account-id "${ACCOUNT_ID}" --use-device-code

# Apply Terraform Quickstart Module
${HOME}/terraform init
Expand Down
3 changes: 2 additions & 1 deletion azure/quickstart.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@

export TF_VAR_azure_region"=${1:-""}"
export TF_VAR_env_prefix="${2:-""}"
export ACCOUNT_ID="${3:-""}"
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"
Expand All @@ -28,7 +29,7 @@ cd cdp-tf-quickstarts/azure
# Install CDP CLI and Log In
pip install cdpcli

cdp login
cdp login --account-id "${ACCOUNT_ID}" --use-device-code

# Apply Terraform Quickstart Module
terraform init
Expand Down
5 changes: 3 additions & 2 deletions gcp/quickstart.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@
export TF_VAR_gcp_project="${1:-""}"
export TF_VAR_gcp_region="${2:-""}"
export TF_VAR_env_prefix="${3:-""}"
export TF_VAR_deployment_template="${4:-"semi-private"}"
export ACCOUNT_ID="${4:-""}"
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"
Expand All @@ -29,7 +30,7 @@ cd cdp-tf-quickstarts/gcp
# Install CDP CLI and Log In
pip install cdpcli

cdp login
cdp login --account-id "${ACCOUNT_ID}" --use-device-code

# Apply Terraform Quickstart Module
terraform init
Expand Down

0 comments on commit a0fd18d

Please sign in to comment.