Skip to content

Commit

Permalink
Removed the '?ref=1.3.0' from the github path (it was a temporary w/a) (
Browse files Browse the repository at this point in the history
#53)

* Removed the ''?ref=1.3.0' from the github path (it was a temporary w/a)

* Removed the ''?ref=1.3.0' from the github path (it was a temporary w/a)

* Removed the ''?ref=1.3.0' from the github path (it was a temporary w/a)
  • Loading branch information
Linda Nasredin authored Jan 11, 2023
1 parent 5396f52 commit a2632a0
Show file tree
Hide file tree
Showing 11 changed files with 36 additions and 36 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/terraform_apply.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ jobs:

- name: Change the modules source to local
run: |
find . -type f -exec sed -i -e 's/source *= \"github.com\/imperva\/dsfkit\/\/deploy\/modules/source = \"..\/..\/..\/modules\/aws/' -e 's/?ref=.*/"/' {} \;
find . -type f -exec sed -i -e 's/source *= \"github.com\/imperva\/dsfkit\//source = \"..\/..\/../' -e 's/?ref=.*/"/' {} \;
! grep -rnw '.' -e 'github\.com/imperva/dsfkit//modules'
- name: Sets env vars for environment
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/terraform_apply_hadr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ jobs:

- name: Change the modules source to local
run: |
find . -type f -exec sed -i -e 's/source *= \"github.com\/imperva\/dsfkit\/\/deploy\/modules/source = \"..\/..\/..\/modules\/aws/' -e 's/?ref=.*/"/' {} \;
find . -type f -exec sed -i -e 's/source *= \"github.com\/imperva\/dsfkit\//source = \"..\/..\/../' -e 's/?ref=.*/"/' {} \;
! grep -rnw '.' -e 'github\.com/imperva/dsfkit//modules'
- name: Sets env vars for environment
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/terraform_apply_simple_cli.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ jobs:

- name: Change the modules source to local
run: |
find . -type f -exec sed -i -e 's/source *= \"github.com\/imperva\/dsfkit\/\/deploy\/modules/source = \"..\/..\/..\/modules\/aws/' -e 's/?ref=.*/"/' {} \;
find . -type f -exec sed -i -e 's/source *= \"github.com\/imperva\/dsfkit\//source = \"..\/..\/../' -e 's/?ref=.*/"/' {} \;
! grep -rnw '.' -e 'github\.com/imperva/dsfkit//modules'
- name: Sets env vars for environment
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/terraform_plan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:

- name: Change the modules source to local
run: |
find . -type f -exec sed -i -e 's/source *= \"github.com\/imperva\/dsfkit\/\/deploy\/modules/source = \"..\/..\/..\/modules\/aws/' -e 's/?ref=.*/"/' {} \;
find . -type f -exec sed -i -e 's/source *= \"github.com\/imperva\/dsfkit\//source = \"..\/..\/../' -e 's/?ref=.*/"/' {} \;
! grep -rnw '.' -e 'github\.com/imperva/dsfkit//modules'
# Install the latest version of Terraform CLI and configure the Terraform CLI configuration file with a Terraform Cloud user API token
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/terraform_run_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ jobs:

- name: Change the modules source to local
run: |
find . -type f -exec sed -i -e 's/source *= \"github.com\/imperva\/dsfkit\/\/deploy\/modules/source = \"..\/..\/..\/modules\/aws/' -e 's/?ref=.*/"/' {} \;
find . -type f -exec sed -i -e 's/source *= \"github.com\/imperva\/dsfkit\//source = \"..\/..\/../' -e 's/?ref=.*/"/' {} \;
! grep -rnw '.' -e 'github\.com/imperva/dsfkit//modules'
- name: Set Environment Variables
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/terraform_simple_cli_dev_nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:

- name: Change the modules source to local
run: |
find . -type f -exec sed -i -e 's/source *= \"github.com\/imperva\/dsfkit\/\/deploy\/modules/source = \"..\/..\/..\/modules\/aws/' -e 's/?ref=.*/"/' {} \;
find . -type f -exec sed -i -e 's/source *= \"github.com\/imperva\/dsfkit\//source = \"..\/..\/../' -e 's/?ref=.*/"/' {} \;
! grep -rnw '.' -e 'github\.com/imperva/dsfkit//modules'
- name: Sets env vars for environment
Expand Down
12 changes: 6 additions & 6 deletions examples/installation/multi_account_deployment/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ provider "aws" {
}

module "globals" {
source = "github.com/imperva/dsfkit//deploy/modules/core/globals?ref=1.3.0"
source = "github.com/imperva/dsfkit//modules/aws/core/globals"
}

locals {
Expand All @@ -39,13 +39,13 @@ locals {
##############################

module "key_pair_hub" {
source = "github.com/imperva/dsfkit//deploy/modules/core/key_pair?ref=1.3.0"
source = "github.com/imperva/dsfkit//modules/aws/core/key_pair"
key_name_prefix = "imperva-dsf-hub"
private_key_pem_filename = "ssh_keys/dsf_ssh_key-hub-${terraform.workspace}"
}

module "key_pair_gw" {
source = "github.com/imperva/dsfkit//deploy/modules/core/key_pair?ref=1.3.0"
source = "github.com/imperva/dsfkit//modules/aws/core/key_pair"
key_name_prefix = "imperva-dsf-gw"
private_key_pem_filename = "ssh_keys/dsf_ssh_key-gw-${terraform.workspace}"
providers = {
Expand All @@ -58,7 +58,7 @@ module "key_pair_hub" {
##############################

module "hub" {
source = "github.com/imperva/dsfkit//deploy/modules/hub?ref=1.3.0"
source = "github.com/imperva/dsfkit//modules/aws/hub"
friendly_name = join("-", [local.deployment_name_salted, "hub", "primary"])
subnet_id = var.subnet_hub
binaries_location = local.tarball_location
Expand All @@ -81,7 +81,7 @@ module "hub" {

module "agentless_gw_group" {
count = var.gw_count
source = "github.com/imperva/dsfkit//deploy/modules/agentless-gw?ref=1.3.0"
source = "github.com/imperva/dsfkit//modules/aws/agentless-gw"
friendly_name = join("-", [local.deployment_name_salted, "gw", count.index])
instance_type = var.gw_instance_type
ami_name_tag = var.gw_ami_name
Expand Down Expand Up @@ -112,7 +112,7 @@ module "hub" {

module "federation" {
for_each = { for idx, val in module.agentless_gw_group : idx => val }
source = "github.com/imperva/dsfkit//deploy/modules/federation?ref=1.3.0"
source = "github.com/imperva/dsfkit//modules/aws/federation"
gws_info = {
gw_ip_address = each.value.private_address
gw_private_ssh_key_path = module.key_pair_gw.key_pair_private_pem.filename
Expand Down
16 changes: 8 additions & 8 deletions examples/poc/basic_deployment/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ provider "aws" {
}

module "globals" {
source = "github.com/imperva/dsfkit//deploy/modules/core/globals?ref=1.3.0"
source = "github.com/imperva/dsfkit//modules/aws/core/globals"
}

module "key_pair" {
source = "github.com/imperva/dsfkit//deploy/modules/core/key_pair?ref=1.3.0"
source = "github.com/imperva/dsfkit//modules/aws/core/key_pair"
key_name_prefix = "imperva-dsf-"
private_key_pem_filename = "ssh_keys/dsf_ssh_key-${terraform.workspace}"
}
Expand Down Expand Up @@ -55,7 +55,7 @@ module "vpc" {
##############################

module "hub" {
source = "github.com/imperva/dsfkit//deploy/modules/hub?ref=1.3.0"
source = "github.com/imperva/dsfkit//modules/aws/hub"
friendly_name = join("-", [local.deployment_name_salted, "hub", "primary"])
subnet_id = module.vpc.public_subnets[0]
binaries_location = local.tarball_location
Expand All @@ -78,7 +78,7 @@ module "hub" {

module "agentless_gw_group" {
count = var.gw_count
source = "github.com/imperva/dsfkit//deploy/modules/agentless-gw?ref=1.3.0"
source = "github.com/imperva/dsfkit//modules/aws/agentless-gw"
friendly_name = join("-", [local.deployment_name_salted, "gw", count.index])
subnet_id = module.vpc.private_subnets[0]
ebs = var.gw_group_ebs_details
Expand Down Expand Up @@ -106,7 +106,7 @@ module "agentless_gw_group" {

module "federation" {
for_each = { for idx, val in module.agentless_gw_group : idx => val }
source = "github.com/imperva/dsfkit//deploy/modules/federation?ref=1.3.0"
source = "github.com/imperva/dsfkit//modules/aws/federation"
gws_info = {
gw_ip_address = each.value.private_address
gw_private_ssh_key_path = module.key_pair.key_pair_private_pem.filename
Expand All @@ -125,14 +125,14 @@ module "federation" {

module "rds_mysql" {
count = 1
source = "github.com/imperva/dsfkit//deploy/modules/rds-mysql-db?ref=1.3.0"
source = "github.com/imperva/dsfkit//modules/aws/rds-mysql-db"
rds_subnet_ids = module.vpc.public_subnets
security_group_ingress_cidrs = local.workstation_cidr
}

module "db_onboarding" {
for_each = { for idx, val in module.rds_mysql : idx => val }
source = "github.com/imperva/dsfkit//deploy/modules/db-onboarder?ref=1.3.0"
source = "github.com/imperva/dsfkit//modules/aws/db-onboarder"
sonar_version = module.globals.tarball_location.version
hub_info = {
hub_ip_address = module.hub.public_address
Expand All @@ -157,7 +157,7 @@ module "db_onboarding" {
}

module "statistics" {
source = "github.com/imperva/dsfkit//deploy/modules/statistics?ref=1.3.0"
source = "github.com/imperva/dsfkit//modules/aws/statistics"
}

output "db_details" {
Expand Down
20 changes: 10 additions & 10 deletions examples/poc/hadr_deployment/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ provider "aws" {
}

module "globals" {
source = "github.com/imperva/dsfkit//deploy/modules/core/globals?ref=1.3.0"
source = "github.com/imperva/dsfkit//modules/aws/core/globals"
}

module "key_pair" {
source = "github.com/imperva/dsfkit//deploy/modules/core/key_pair?ref=1.3.0"
source = "github.com/imperva/dsfkit//modules/aws/core/key_pair"
key_name_prefix = "imperva-dsf-"
private_key_pem_filename = "ssh_keys/dsf_ssh_key-${terraform.workspace}"
}
Expand Down Expand Up @@ -54,7 +54,7 @@ module "vpc" {
# Generating deployment
##############################
module "hub" {
source = "github.com/imperva/dsfkit//deploy/modules/hub?ref=1.3.0"
source = "github.com/imperva/dsfkit//modules/aws/hub"
friendly_name = join("-", [local.deployment_name_salted, "hub", "primary"])
subnet_id = module.vpc.public_subnets[0]
binaries_location = local.tarball_location
Expand All @@ -76,7 +76,7 @@ module "hub" {
}

module "hub_secondary" {
source = "github.com/imperva/dsfkit//deploy/modules/hub?ref=1.3.0"
source = "github.com/imperva/dsfkit//modules/aws/hub"
friendly_name = join("-", [local.deployment_name_salted, "hub", "secondary"])
subnet_id = module.vpc.public_subnets[1]
binaries_location = local.tarball_location
Expand All @@ -102,7 +102,7 @@ module "hub_secondary" {

module "agentless_gw_group" {
count = var.gw_count
source = "github.com/imperva/dsfkit//deploy/modules/agentless-gw?ref=1.3.0"
source = "github.com/imperva/dsfkit//modules/aws/agentless-gw"
friendly_name = join("-", [local.deployment_name_salted, "gw", count.index])
subnet_id = module.vpc.private_subnets[0]
ebs = var.gw_group_ebs_details
Expand Down Expand Up @@ -139,7 +139,7 @@ locals {

module "federation" {
count = length(local.hub_gw_combinations)
source = "github.com/imperva/dsfkit//deploy/modules/federation?ref=1.3.0"
source = "github.com/imperva/dsfkit//modules/aws/federation"
gws_info = {
gw_ip_address = local.hub_gw_combinations[count.index][1].private_address
gw_private_ssh_key_path = module.key_pair.key_pair_private_pem.filename
Expand All @@ -158,7 +158,7 @@ module "federation" {
}

module "hadr" {
source = "github.com/imperva/dsfkit//deploy/modules/hadr?ref=1.3.0"
source = "github.com/imperva/dsfkit//modules/aws/hadr"
dsf_hub_primary_public_ip = module.hub.public_address
dsf_hub_primary_private_ip = module.hub.private_address
dsf_hub_secondary_public_ip = module.hub_secondary.public_address
Expand All @@ -174,14 +174,14 @@ module "hadr" {

module "rds_mysql" {
count = 1
source = "github.com/imperva/dsfkit//deploy/modules/rds-mysql-db?ref=1.3.0"
source = "github.com/imperva/dsfkit//modules/aws/rds-mysql-db"
rds_subnet_ids = module.vpc.public_subnets
security_group_ingress_cidrs = local.workstation_cidr
}

module "db_onboarding" {
for_each = { for idx, val in module.rds_mysql : idx => val }
source = "github.com/imperva/dsfkit//deploy/modules/db-onboarder?ref=1.3.0"
source = "github.com/imperva/dsfkit//modules/aws/db-onboarder"
sonar_version = module.globals.tarball_location.version
hub_info = {
hub_ip_address = module.hub.public_address
Expand All @@ -207,7 +207,7 @@ module "db_onboarding" {
}

module "statistics" {
source = "github.com/imperva/dsfkit//deploy/modules/statistics?ref=1.3.0"
source = "github.com/imperva/dsfkit//modules/aws/statistics"
}

output "db_details" {
Expand Down
6 changes: 3 additions & 3 deletions modules/aws/agentless-gw/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,11 @@ provider "aws" {
}
module "globals" {
source = "github.com/imperva/dsfkit//deploy/modules/core/globals?ref=1.3.0"
source = "github.com/imperva/dsfkit//modules/aws/core/globals"
}
module "dsf_gw" {
source = "github.com/imperva/dsfkit//deploy/modules/agentless-gw?ref=1.3.0"
source = "github.com/imperva/dsfkit//modules/aws/agentless-gw"
subnet_id = "${aws_subnet.example.id}"
ssh_key_pair = {
Expand Down Expand Up @@ -91,7 +91,7 @@ If you want to use a specific version of the module, you can specify the version

```
module "dsf_gw" {
source = "github.com/imperva/dsfkit//deploy/modules/agentless-gw?ref=1.3.0"
source = "github.com/imperva/dsfkit//modules/aws/agentless-gw?ref=1.3.0"
}
```

Expand Down
6 changes: 3 additions & 3 deletions modules/aws/hub/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,11 +60,11 @@ provider "aws" {
}
module "globals" {
source = "github.com/imperva/dsfkit//deploy/modules/core/globals?ref=1.3.0"
source = "github.com/imperva/dsfkit//modules/aws/core/globals"
}
module "dsf_hub" {
source = "github.com/imperva/dsfkit//deploy/modules/hub?ref=1.3.0"
source = "github.com/imperva/dsfkit//modules/aws/hub"
subnet_id = "${aws_subnet.example.id}"
ssh_key_pair = {
Expand Down Expand Up @@ -93,7 +93,7 @@ If you want to use a specific version of the module, you can specify the version

```
module "dsf_hub" {
source = "github.com/imperva/dsfkit//deploy/modules/hub?ref=1.3.0"
source = "github.com/imperva/dsfkit//modules/aws/hub?ref=1.3.0"
}
```

Expand Down

0 comments on commit a2632a0

Please sign in to comment.