Skip to content

Commit

Permalink
update dam modules path to use terraform registry (#337)
Browse files Browse the repository at this point in the history
  • Loading branch information
sivan-hajbi-imperva authored Jan 10, 2024
1 parent 3c87767 commit c00100d
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 14 deletions.
20 changes: 10 additions & 10 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -205,13 +205,13 @@ jobs:
ARM_CLIENT_SECRET: ${{ secrets.ARM_CLIENT_SECRET }}
DAM_LICENSE: ${{ secrets.DAM_LICENSE }}

# test_apply:
# needs: test_plan
# uses: ./.github/workflows/sonar_poc_cli.yml
# with:
# use_modules_from_terraform_registry: true
# explicit_ref: master
# secrets:
# AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
# AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
# SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
test_apply:
needs: test_plan
uses: ./.github/workflows/sonar_poc_cli.yml
with:
use_modules_from_terraform_registry: true
explicit_ref: master
secrets:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
3 changes: 2 additions & 1 deletion examples/azure/poc/dsf_deployment/agent_sources.tf
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ locals {
}

module "db_with_agent" {
source = "../../../../modules/azurerm/db-with-agent"
source = "imperva/dsf-db-with-agent/azurerm"
version = "1.7.4" # latest release tag
count = length(local.db_types_for_agent)

friendly_name = join("-", [local.deployment_name_salted, "db", "with", "agent", count.index])
Expand Down
8 changes: 5 additions & 3 deletions examples/azure/poc/dsf_deployment/dam.tf
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ locals {
}

module "mx" {
source = "../../../../modules/azurerm/mx"
source = "imperva/dsf-mx/azurerm"
version = "1.7.4" # latest release tag
count = var.enable_dam ? 1 : 0

friendly_name = join("-", [local.deployment_name_salted, "mx"])
Expand Down Expand Up @@ -39,7 +40,8 @@ module "mx" {
}

module "agent_gw" {
source = "../../../../modules/azurerm/agent-gw"
source = "imperva/dsf-agent-gw/azurerm"
version = "1.7.4" # latest release tag
count = local.agent_gw_count

friendly_name = join("-", [local.deployment_name_salted, "agent", "gw", count.index])
Expand All @@ -66,7 +68,7 @@ module "agent_gw" {
}

module "agent_gw_cluster_setup" {
source = "../../../../modules/null/agent-gw-cluster-setup"
source = "imperva/dsf-agent-gw-cluster-setup/null"
count = local.create_agent_gw_cluster

cluster_name = join("-", [local.deployment_name_salted, "agent", "gw", "cluster"])
Expand Down

0 comments on commit c00100d

Please sign in to comment.