diff --git a/.github/workflows/terraform_apply_cli_dam_poc.yml b/.github/workflows/terraform_apply_cli_dam_poc.yml index 3386e902d..1d1d4dcaa 100644 --- a/.github/workflows/terraform_apply_cli_dam_poc.yml +++ b/.github/workflows/terraform_apply_cli_dam_poc.yml @@ -154,13 +154,13 @@ jobs: - name: Terraform Plan run: | terraform -chdir=$EXAMPLE_DIR workspace list - terraform -chdir=$EXAMPLE_DIR plan -var license_file=license.mprv + terraform -chdir=$EXAMPLE_DIR plan -var license=license.mprv # On push to "main", build or change infrastructure according to Terraform configuration files # Note: It is recommended to set up a required "strict" status check in your repository for "Terraform Cloud". See the documentation on "strict" required status checks for more information: https://help.github.com/en/github/administering-a-repository/types-of-required-status-checks - name: Terraform Apply # if: github.ref == 'refs/heads/"master"' && github.event_name == 'push' || github.event_name == 'workflow_dispatch' - run: terraform -chdir=$EXAMPLE_DIR apply -var license_file=license.mprv -auto-approve + run: terraform -chdir=$EXAMPLE_DIR apply -var license=license.mprv -auto-approve - name: Terraform Output if: always() @@ -169,7 +169,7 @@ jobs: - name: Terraform Destroy id: destroy if: always() - run: terraform -chdir=$EXAMPLE_DIR destroy -var license_file=license.mprv -auto-approve + run: terraform -chdir=$EXAMPLE_DIR destroy -var license=license.mprv -auto-approve - name: Terraform Delete Workspace if: always() diff --git a/.github/workflows/terraform_apply_cli_dsf_poc.yml b/.github/workflows/terraform_apply_cli_dsf_poc.yml index 2935b74da..aad70c4e4 100644 --- a/.github/workflows/terraform_apply_cli_dsf_poc.yml +++ b/.github/workflows/terraform_apply_cli_dsf_poc.yml @@ -129,13 +129,13 @@ jobs: - name: Terraform Plan run: | terraform -chdir=$EXAMPLE_DIR workspace list - terraform -chdir=$EXAMPLE_DIR plan -var license_file=license.mprv + terraform -chdir=$EXAMPLE_DIR plan -var license=license.mprv # On push to "main", build or change infrastructure according to Terraform configuration files # Note: It is recommended to set up a required "strict" status check in your repository for "Terraform Cloud". See the documentation on "strict" required status checks for more information: https://help.github.com/en/github/administering-a-repository/types-of-required-status-checks - name: Terraform Apply # if: github.ref == 'refs/heads/"master"' && github.event_name == 'push' || github.event_name == 'workflow_dispatch' - run: terraform -chdir=$EXAMPLE_DIR apply -var license_file=license.mprv -auto-approve + run: terraform -chdir=$EXAMPLE_DIR apply -var license=license.mprv -auto-approve - name: Terraform Output if: always() @@ -144,7 +144,7 @@ jobs: - name: Terraform Destroy id: destroy if: always() - run: terraform -chdir=$EXAMPLE_DIR destroy -var license_file=license.mprv -auto-approve + run: terraform -chdir=$EXAMPLE_DIR destroy -var license=license.mprv -auto-approve - name: Terraform Delete Workspace if: always() diff --git a/examples/alpha/dam_basic_deployment/flex b/examples/alpha/dam_basic_deployment/flex new file mode 100644 index 000000000..088c96947 --- /dev/null +++ b/examples/alpha/dam_basic_deployment/flex @@ -0,0 +1 @@ +1D8C36C7-LC78-414B-9F8F-D03060FB49B9 \ No newline at end of file diff --git a/examples/alpha/dam_basic_deployment/main.tf b/examples/alpha/dam_basic_deployment/main.tf index 2b8ea6b05..b6376b536 100644 --- a/examples/alpha/dam_basic_deployment/main.tf +++ b/examples/alpha/dam_basic_deployment/main.tf @@ -72,7 +72,7 @@ module "mx" { friendly_name = join("-", [local.deployment_name_salted, "mx"]) dam_version = var.dam_version subnet_id = local.mx_subnet_id - license_file = var.license_file + license = var.license key_pair = module.key_pair.key_pair.key_pair_name secure_password = local.password mx_password = local.password @@ -93,7 +93,6 @@ module "mx" { module "agent_gw" { source = "imperva/dsf-agent-gw/aws" version = "1.5.0" # latest release tag - count = var.gw_count friendly_name = join("-", [local.deployment_name_salted, "agent", "gw", count.index]) diff --git a/examples/alpha/dam_basic_deployment/variables.tf b/examples/alpha/dam_basic_deployment/variables.tf index 92d4c7c87..11179ddbb 100644 --- a/examples/alpha/dam_basic_deployment/variables.tf +++ b/examples/alpha/dam_basic_deployment/variables.tf @@ -18,10 +18,6 @@ variable "gw_count" { type = number default = 2 description = "Number of DSF Agent Gateways" - validation { - condition = var.gw_count >= 2 - error_message = "Must be greater or equal to 2" - } } variable "agent_count" { @@ -79,13 +75,17 @@ variable "gw_group_id" { description = "Gw group id. Keep empty for random generated one" } -variable "license_file" { - type = string +variable "license" { + description = <