-
-
Notifications
You must be signed in to change notification settings - Fork 5
Allow passing allowed security groups by id #61
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
Allow passing allowed security groups by id #61
Conversation
WalkthroughExtends the allowed security groups aggregation in src/main.tf to also include a new input variable. Introduces a new Terraform variable in src/variables.tf to accept explicit security group IDs, defaulting to an empty list. No other logic paths or exports are modified. Changes
Sequence Diagram(s)sequenceDiagram
autonumber
actor Dev as Developer
participant TF as Terraform (plan/apply)
participant Vars as Variables
participant Data as data.aws_security_groups.allowed
participant Loc as local.allowed_security_groups
participant Res as Resources/Modules
Dev->>TF: Run plan/apply
TF->>Vars: Read var.allowed_security_group_ids
TF->>Data: Resolve allowed security groups by name
TF->>Loc: Concatenate IDs (var + data + EKS locals)
Loc-->>Res: Provide allowed_security_groups
Res-->>Dev: Apply with expanded allowed SGs
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Poem
Pre-merge checks and finishing touches✅ Passed checks (3 passed)
✨ Finishing touches🧪 Generate unit tests
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 |
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: 1
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (2)
src/main.tf
(1 hunks)src/variables.tf
(1 hunks)
🧰 Additional context used
📓 Path-based instructions (2)
src/@(main|variables|outputs|providers|versions|context).tf
📄 CodeRabbit inference engine (AGENTS.md)
Keep the Terraform component source of truth under src/ with canonical files: main.tf, variables.tf, outputs.tf, providers.tf, versions.tf, context.tf
Files:
src/main.tf
src/variables.tf
src/**/*.tf
📄 CodeRabbit inference engine (AGENTS.md)
src/**/*.tf
: Terraform code must be formatted (terraform fmt -recursive) and free of lint violations (TFLint rules)
Use lower_snake_case for Terraform variables and locals; keep resource and data source names descriptive and aligned with Cloud Posse null-label patterns
Use 2-space indentation for Terraform files
Files:
src/main.tf
src/variables.tf
⏰ 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
Thanks @jochem725 for creating this pull request! A maintainer will review your changes shortly. Please don't be discouraged if it takes a while. While you wait, make sure to review our contributor guidelines. Tip Need help or want to ask for a PR review to be expedited?Join us on Slack in the |
7fa6f99
These changes were released in v1.540.1. |
what
why
Summary by CodeRabbit