Skip to content

Commit

Permalink
Update AWS policy to not use deprecated field (#434)
Browse files Browse the repository at this point in the history
aws.rds.dbInstances is now just aws.rds.instances.

Signed-off-by: Tim Smith <[email protected]>
  • Loading branch information
tas50 authored Sep 11, 2024
1 parent 38a64de commit 2c8432f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions core/mondoo-aws-security.mql.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1939,8 +1939,8 @@ queries:
filters: |
asset.platform == "aws"
mql: |
aws.rds.dbInstances.all(publiclyAccessible == false)
aws.rds.dbInstances
aws.rds.instances.all(publiclyAccessible == false)
aws.rds.instances
.where(publiclyAccessible != false)
.none(securityGroups.where(
vpc.routeTables.where(
Expand Down Expand Up @@ -1977,13 +1977,13 @@ queries:
3. Run this query:
```mql
aws.rds.dbInstances.where(publiclyAccessible == true) {arn name region dbInstanceIdentifier tags}
aws.rds.instances.where(publiclyAccessible == true) {arn name region dbInstanceIdentifier tags}
```
Example output:
```mql
aws.rds.dbInstances.where: [
aws.rds.instances.where: [
0: {
arn: \"arn:aws:rds:us-moonbase-2:12345:db:rds-12345-mondoo-demo\"
tags: {
Expand Down

0 comments on commit 2c8432f

Please sign in to comment.