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

feat(terraform): New bedrock check #6892

Merged
merged 2 commits into from
Dec 5, 2024
Merged

feat(terraform): New bedrock check #6892

merged 2 commits into from
Dec 5, 2024

Conversation

tsmithv11
Copy link
Collaborator

@tsmithv11 tsmithv11 commented Dec 4, 2024

User description

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Description

New check associated with a531ce58-18f2-439b-863f-601c3ac7f7c4 AWS Bedrock agent is not associated with Bedrock guardrails

Checklist:

  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • I have added tests that prove my feature, policy, or fix is effective and works
  • New and existing tests pass locally with my changes

Generated description

Below is a concise technical summary of the changes proposed in this PR:

Implements a new Terraform check for AWS Bedrock agents to ensure they are associated with Bedrock guardrails. Creates a new BedrockGuardrails class that extends BaseResourceValueCheck to perform the check. Adds corresponding test files to validate the new check's functionality.

TopicDetails
Test Implementation Adds test files to validate the new Bedrock guardrails check
Modified files (2)
  • tests/terraform/checks/resource/aws/test_BedrockGuardrails.py
  • tests/terraform/checks/resource/aws/example_BedrockGuardrails/main.tf
Latest Contributors(0)
UserCommitDate
Bedrock Check Implements a new Terraform check for AWS Bedrock agents to ensure they are associated with Bedrock guardrails
Modified files (1)
  • checkov/terraform/checks/resource/aws/BedrockGuardrails.py
Latest Contributors(0)
UserCommitDate
This pull request is reviewed by Baz. Join @tsmithv11 and the rest of your team on (Baz).

Copy link
Contributor

@talazuri talazuri left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@tsmithv11 tsmithv11 merged commit 89a88bd into main Dec 5, 2024
34 of 35 checks passed
@tsmithv11 tsmithv11 deleted the bedrock-rule-dec24 branch December 5, 2024 21:45
Saarett pushed a commit that referenced this pull request Dec 5, 2024
Saarett pushed a commit that referenced this pull request Dec 5, 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

Successfully merging this pull request may close these issues.

3 participants