checkov
checkov copied to clipboard
fix(terraform): Security group attached to an Elastic DocumentDB cluster is not recognized by check CKV2_AWS_5
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
Description
Include Elastic DocumentDB as a valid associated resource for an aws_security_group
for graph check CKV2_AWS_5
Fixes #6686
Checklist:
- [x] I have performed a self-review of my own code
- [x] I have commented my code, particularly in hard-to-understand areas
- [ ] I have made corresponding changes to the documentation
- [x] I have added tests that prove my feature, policy, or fix is effective and works
- [x] New and existing tests pass locally with my changes