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

Randomize subnet selection #33

Open
croissanne opened this issue Nov 17, 2021 · 1 comment
Open

Randomize subnet selection #33

croissanne opened this issue Nov 17, 2021 · 1 comment

Comments

@croissanne
Copy link
Member

image

We have 2 subnets, each with a max of 64 ipv4s. Can we use https://registry.terraform.io/providers/hashicorp/random/latest/docs/resources/integer (min 0, max 1) to switch between internal subnet ids https://github.com/osbuild/gitlab-ci-terraform/blob/main/aws/_base/data.tf#L20 ?

@ondrejbudai
Copy link
Member

ondrejbudai commented Nov 18, 2021

Even better, it would be sweet if we can detect which subnet is emptier. I think that should be totally possible in terraform.

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