Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HADR disabled 2 #386

Closed
06212 opened this issue Feb 19, 2024 · 3 comments
Closed

HADR disabled 2 #386

06212 opened this issue Feb 19, 2024 · 3 comments
Assignees

Comments

@06212
Copy link

06212 commented Feb 19, 2024

Hello Imperva,

As the follow up on the issue #381, we have tried to deploy the code based on your recommandations using terraform variables:

enable_dam = false
agentless_gw_count = 0
agent_gw_count = 0
hub_hadr = false
agentless_gw_hadr = false
dra_version = "4.14"
attach_persistent_public_ip = false

aws_profile = ""
aws_region_1 = "eu-west-1"
aws_region_2 = "eu-west-1"

/dsf_single_account_deployment$ terraform plan -var-file=default.tfvars

Here is the issue that we got:

│ Error: Invalid index

│ on sonar.tf line 6, in locals:
│ 6: hub_dr_public_ip = var.enable_sonar ? (length(module.hub_dr[0].public_ip) > 0 ? format("%s/32", module.hub_dr[0].public_ip) : null) : null
│ ├────────────────
│ │ module.hub_dr is empty tuple

│ The given key does not identify an element in this collection value: the collection has no elements.


│ Error: Invalid index

│ on sonar.tf line 10, in locals:
│ 10: hub_dr_ip = var.enable_sonar ? (length(module.hub_dr[0].public_dns) > 0 ? module.hub_dr[0].public_dns : module.hub_dr[0].private_dns) : null
│ ├────────────────
│ │ module.hub_dr is empty tuple

│ The given key does not identify an element in this collection value: the collection has no elements.

Could you please advise how to deploy successfully Imperva infrastructure (without HADR)?

Thank you!
Iliya

@lindanasredin
Copy link
Collaborator

Hi Iliya,

I fixed this bug as part of this PR: #388
The fix is in the example code not the modules, so you can just take and use this code and you don't have to wait for the next release of eDSF Kit.

I still see two issues that I mentioned in #381

  1. aws_profile = "" is an invalid configuration, you have to provide and AWS profile name
  2. You have to provide the subnet_ids variable, more details in HADR disabled #381

@lindanasredin lindanasredin self-assigned this Feb 21, 2024
@06212
Copy link
Author

06212 commented Feb 22, 2024 via email

@lindanasredin
Copy link
Collaborator

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants