-
-
Couldn't load subscription status.
- Fork 1
feat: separate external public/private subnet ids #43
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
base: main
Are you sure you want to change the base?
feat: separate external public/private subnet ids #43
Conversation
WalkthroughThe pull request refactors subnet handling in a Terraform module by splitting a single Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related PRs
Suggested labels
Suggested reviewers
Poem
Pre-merge checks and finishing touches❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✨ Finishing touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
Important Do not edit the Please update the Could you fix it @jochem725? 🙏 |
dca5aa5 to
e985555
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
🧹 Nitpick comments (2)
src/main.tf (1)
74-75: Fix typo in comment.Line 74 contains a typo: "batties included" should likely be "batteries included" or possibly another phrase. Please correct.
src/variables.tf (1)
59-71: Enhance variable descriptions with context about networking_stack dependency.The variable descriptions are minimal and don't explain the relationship to
networking_stackor when these variables should be used. Consider enriching the descriptions to clarify:
- These are only applicable when
networking_stack = "external"- Whether one, both, or neither can be specified
- The purpose of splitting into public vs. private (allows spawning workers in different subnet types)
Example enhancement:
variable "public_subnet_ids" { type = list(string) description = "Public subnet IDs for external VPC networking stack. Used when networking_stack is set to 'external' to spawn public workers. Leave null when using embedded networking." nullable = true default = null } variable "private_subnet_ids" { type = list(string) description = "Private subnet IDs for external VPC networking stack. Used when networking_stack is set to 'external' to spawn private workers. Leave null when using embedded networking." nullable = true default = null }
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (2)
src/main.tf(3 hunks)src/variables.tf(1 hunks)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
- GitHub Check: Summary
🔇 Additional comments (2)
src/main.tf (1)
6-7: Verify subnet concatenation order aligns with runs-on expectations.The code concatenates public subnets first, then private subnets. Confirm this ordering is intentional and expected by the runs-on template, particularly if the template has specific expectations about subnet positioning or purpose.
src/variables.tf (1)
59-71: Verify validation strategy for external networking requirements.The PR objectives mention allowing users to spawn both public and private workers, but there's currently no validation to:
- Require at least one subnet when
networking_stack = "external"- Prevent users from specifying subnets when using
networking_stack = "embedded"(though harmless, it could be confusing)Confirm whether validation should be added to catch configuration errors earlier (at Terraform plan time) rather than at CloudFormation deployment time.
what
why
networking_stackis set toexternalwe need to pass both private and public subnets. A single parameter makes this difficult with atmos; this fix allows easier specification.references
Summary by CodeRabbit