We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hello, would it be possible to use a resource in a condition? For example:
Write a rule that validates resource aws_s3_bucket_public_access_block.block_public_acls = true only if's aws_s3_bucket.acl = private
aws_s3_bucket_public_access_block.block_public_acls = true
aws_s3_bucket.acl = private
An example of this rule would be something like this:
- id: BLOCK_CREATE_S3 message: Can't create S3 with public access if it's a private bucket. categorys: - resource recources: - aws_s3_bucket_public_access_block conditions: - key: aws_s3_bucket.acl op: eq value: private assertions: - key: block_public_acls op: eq value: "true"
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hello, would it be possible to use a resource in a condition? For example:
Write a rule that validates resource
aws_s3_bucket_public_access_block.block_public_acls = true
only if'saws_s3_bucket.acl = private
An example of this rule would be something like this:
The text was updated successfully, but these errors were encountered: