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

Question: deploying IaC while reusing same subnet for multiple purposes #291

Open
1 task done
miaeyg opened this issue May 30, 2024 · 2 comments
Open
1 task done
Assignees

Comments

@miaeyg
Copy link

miaeyg commented May 30, 2024

Terraform Version Details

No response

Terraform Variable File Details

No response

Steps to Reproduce

I am working with a customer on deploying using this IaC tool using BYON scenario #2 however the customer wants to have two "private" subnets with "/18" CIDRs (each in one AZ) and no additional subnets. So question is whether it is possible to point the "control_panel" + "database" Terraform variables subnets to the "private" subnets or must they have their own dedicated subnets?

Expected Behavior

That this will work

Actual Behavior

Not tested but not sure whether this is supposed to work or not

Additional Context

No response

References

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct
@miaeyg miaeyg added bug Something isn't working new Added to an issue when it's new ;) labels May 30, 2024
@miaeyg miaeyg changed the title Question: deploying IaC while reusing save VPC for multiple purposes Question: deploying IaC while reusing same VPC for multiple purposes Jun 10, 2024
@miaeyg miaeyg changed the title Question: deploying IaC while reusing same VPC for multiple purposes Question: deploying IaC while reusing same subnet for multiple purposes Jun 11, 2024
@dhoucgitter
Copy link
Member

dhoucgitter commented Aug 11, 2024

Hi @miaeyg, While it is possible to configure IaC to use two private subnets for the EKS cluster in the manner that your described, Viya does not officially support execution with that configuration. I removed the bug tag since this is a scenario question, not a bug.

@dhoucgitter dhoucgitter removed bug Something isn't working new Added to an issue when it's new ;) labels Aug 11, 2024
@miaeyg
Copy link
Author

miaeyg commented Aug 12, 2024

Hi @dhoucgitter

Thanks for replying. That was not the question :)
I will explain again the question: let's say customer wants to deploy SAS into just one single "private" subnet so no separate "control plane" or "database" subnets - everything in one single subnet. Now, I know the control plane and database require two subnets in two different AZs and it is agreed with the customer that we can create an additional subnet in another AZ but this additional subnet will just to satisfy this requirement and no more than that. Is this supported by IaC?

The practical meaning is that in the "subnet_ids" definition all subnets will point to a single subnet-id and some like control-plane will have this additional subnet in the other AZ like this (note how all definitions point to the same "subnet-id-az1"):

subnet_ids = {
  "private" : ["subnet-id-az1"],
  "control_plane" : ["subnet-id-az1", "subnet-id-az2"]
  "database" : ["subnet-id-az1", "subnet-id-az2"]
}

@dhoucgitter dhoucgitter self-assigned this Aug 12, 2024
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