Skip to content

Commit

Permalink
fix(query): uncomment cloud formation's test sample (#5320)
Browse files Browse the repository at this point in the history
* 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
lipeavelar authored Jun 20, 2022
1 parent 41953d3 commit ec3496e
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 49 deletions.

This file was deleted.

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"

0 comments on commit ec3496e

Please sign in to comment.