-
Notifications
You must be signed in to change notification settings - Fork 316
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(query): uncomment cloud formation's test sample (#5320)
* fix(query): uncomment cloud formation's test sample Signed-off-by: Felipe Avelar <felipe.avelar@outlook.com> * add suggested changes Signed-off-by: Felipe Avelar <felipe.avelar@outlook.com>
- Loading branch information
1 parent
41953d3
commit ec3496e
Showing
2 changed files
with
24 additions
and
49 deletions.
There are no files selected for viewing
25 changes: 0 additions & 25 deletions
25
assets/queries/cloudFormation/aws/iam_access_analyzer_not_enabled/test/file.json
This file was deleted.
Oops, something went wrong.
48 changes: 24 additions & 24 deletions
48
assets/queries/cloudFormation/aws/iam_access_analyzer_not_enabled/test/negative1.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,24 @@ | ||
#AWSTemplateFormatVersion: 2010-09-09 | ||
#Resources: | ||
# Analyzer: | ||
# Type: "AWS::AccessAnalyzer::Analyzer" | ||
# Properties: | ||
# AnalyzerName: MyAccountAnalyzer | ||
# Type: ACCOUNT | ||
# Tags: | ||
# - Key: Kind | ||
# Value: Dev | ||
# ArchiveRules: | ||
# Archive findings for a trusted AWS account | ||
# RuleName: ArchiveTrustedAccountAccess | ||
# Filter: | ||
# - Property: "principal.AWS" | ||
# Eq: | ||
# - "123456789012" | ||
# Archive findings for known public S3 buckets | ||
# RuleName: ArchivePublicS3BucketsAccess | ||
# Filter: | ||
# - Property: "resource" | ||
# Contains: | ||
# - "arn:aws:s3:::docs-bucket" | ||
# - "arn:aws:s3:::clients-bucket" | ||
AWSTemplateFormatVersion: 2010-09-09 | ||
Resources: | ||
Analyzer: | ||
Type: "AWS::AccessAnalyzer::Analyzer" | ||
Properties: | ||
AnalyzerName: MyAccountAnalyzer | ||
Type: ACCOUNT | ||
Tags: | ||
- Key: Kind | ||
Value: Dev | ||
ArchiveRules: | ||
- # Archive findings for a trusted AWS account | ||
RuleName: ArchiveTrustedAccountAccess | ||
Filter: | ||
- Property: "principal.AWS" | ||
Eq: | ||
- "123456789012" | ||
- # Archive findings for known public S3 buckets | ||
RuleName: ArchivePublicS3BucketsAccess | ||
Filter: | ||
- Property: "resource" | ||
Contains: | ||
- "arn:aws:s3:::docs-bucket" | ||
- "arn:aws:s3:::clients-bucket" |