-
Notifications
You must be signed in to change notification settings - Fork 265
/
Copy pathsra-iam-access-analyzer-account.yaml
47 lines (43 loc) · 1.57 KB
/
sra-iam-access-analyzer-account.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
########################################################################
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: MIT-0
########################################################################
AWSTemplateFormatVersion: 2010-09-09
Description:
This template creates an account IAM Access Analyzer - 'iam_access_analyzer' solution in the repo,
https://github.com/aws-samples/aws-security-reference-architecture-examples (sra-1ssgnse52)
Metadata:
AWS::CloudFormation::Interface:
ParameterGroups:
- Label:
default: General Properties
Parameters:
- pSRASolutionName
- Label:
default: IAM Access Analyzer Attributes
Parameters:
- pAccessAnalyzerNamePrefix
ParameterLabels:
pAccessAnalyzerNamePrefix:
default: Access Analyzer Name Prefix
pSRASolutionName:
default: SRA Solution Name
Parameters:
pAccessAnalyzerNamePrefix:
Default: sra-account-access-analyzer
Description: Access Analyzer Name Prefix. The Account ID will be appended to the name.
Type: String
pSRASolutionName:
AllowedValues: [sra-iam-access-analyzer]
Default: sra-iam-access-analyzer
Description: The SRA solution name. The default value is the folder name of the solution
Type: String
Resources:
rAccountAccessAnalyzer:
Type: AWS::AccessAnalyzer::Analyzer
Properties:
AnalyzerName: !Sub ${pAccessAnalyzerNamePrefix}-${AWS::AccountId}
Tags:
- Key: sra-solution
Value: !Ref pSRASolutionName
Type: ACCOUNT