-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Expand file tree
/
Copy pathsetup.yaml
More file actions
141 lines (141 loc) · 4.76 KB
/
setup.yaml
File metadata and controls
141 lines (141 loc) · 4.76 KB
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
Resources:
ExampleIdentityPool:
Type: AWS::Cognito::IdentityPool
Properties:
AllowUnauthenticatedIdentities: true
Metadata:
aws:cdk:path: SetupStack/ExampleIdentityPool
CognitoDefaultUnauthenticatedRoleABBF7267:
Type: AWS::IAM::Role
Properties:
AssumeRolePolicyDocument:
Statement:
- Action: sts:AssumeRoleWithWebIdentity
Condition:
StringEquals:
cognito-identity.amazonaws.com:aud:
Ref: ExampleIdentityPool
ForAnyValue:StringLike:
cognito-identity.amazonaws.com:amr: unauthenticated
Effect: Allow
Principal:
Federated: cognito-identity.amazonaws.com
Version: "2012-10-17"
Metadata:
aws:cdk:path: SetupStack/CognitoDefaultUnauthenticatedRole/Resource
CognitoDefaultUnauthenticatedRoleDefaultPolicy2B700C08:
Type: AWS::IAM::Policy
Properties:
PolicyDocument:
Statement:
- Action:
- mobileanalytics:PutEvents
- cognito-sync:*
Effect: Allow
Resource: "*"
- Action: ses:SendEmail
Effect: Allow
Resource: "*"
- Action: transcribe:StartStreamTranscriptionWebSocket
Effect: Allow
Resource: "*"
- Action: comprehend:DetectDominantLanguage
Effect: Allow
Resource: "*"
- Action: translate:TranslateText
Effect: Allow
Resource: "*"
Version: "2012-10-17"
PolicyName: CognitoDefaultUnauthenticatedRoleDefaultPolicy2B700C08
Roles:
- Ref: CognitoDefaultUnauthenticatedRoleABBF7267
Metadata:
aws:cdk:path: SetupStack/CognitoDefaultUnauthenticatedRole/DefaultPolicy/Resource
DefaultValid:
Type: AWS::Cognito::IdentityPoolRoleAttachment
Properties:
IdentityPoolId:
Ref: ExampleIdentityPool
Roles:
unauthenticated:
Fn::GetAtt:
- CognitoDefaultUnauthenticatedRoleABBF7267
- Arn
Metadata:
aws:cdk:path: SetupStack/DefaultValid
CDKMetadata:
Type: AWS::CDK::Metadata
Properties:
Modules: aws-cdk=1.95.1,@aws-cdk/assets=1.84.0,@aws-cdk/aws-applicationautoscaling=1.84.0,@aws-cdk/aws-autoscaling-common=1.84.0,@aws-cdk/aws-cloudwatch=1.84.0,@aws-cdk/aws-codeguruprofiler=1.84.0,@aws-cdk/aws-cognito=1.84.0,@aws-cdk/aws-ec2=1.84.0,@aws-cdk/aws-ecr=1.84.0,@aws-cdk/aws-ecr-assets=1.84.0,@aws-cdk/aws-events=1.84.0,@aws-cdk/aws-iam=1.84.0,@aws-cdk/aws-kms=1.84.0,@aws-cdk/aws-lambda=1.84.0,@aws-cdk/aws-logs=1.84.0,@aws-cdk/aws-s3=1.84.0,@aws-cdk/aws-s3-assets=1.84.0,@aws-cdk/aws-sqs=1.84.0,@aws-cdk/aws-ssm=1.84.0,@aws-cdk/cloud-assembly-schema=1.84.0,@aws-cdk/core=1.84.0,@aws-cdk/custom-resources=1.84.0,@aws-cdk/cx-api=1.84.0,@aws-cdk/region-info=1.84.0,jsii-runtime=node.js/v14.17.0
Metadata:
aws:cdk:path: SetupStack/CDKMetadata/Default
Condition: CDKMetadataAvailable
Outputs:
Identitypoolid:
Value:
Ref: ExampleIdentityPool
Conditions:
CDKMetadataAvailable:
Fn::Or:
- Fn::Or:
- Fn::Equals:
- Ref: AWS::Region
- ap-east-1
- Fn::Equals:
- Ref: AWS::Region
- ap-northeast-1
- Fn::Equals:
- Ref: AWS::Region
- ap-northeast-2
- Fn::Equals:
- Ref: AWS::Region
- ap-south-1
- Fn::Equals:
- Ref: AWS::Region
- ap-southeast-1
- Fn::Equals:
- Ref: AWS::Region
- ap-southeast-2
- Fn::Equals:
- Ref: AWS::Region
- ca-central-1
- Fn::Equals:
- Ref: AWS::Region
- cn-north-1
- Fn::Equals:
- Ref: AWS::Region
- cn-northwest-1
- Fn::Equals:
- Ref: AWS::Region
- eu-central-1
- Fn::Or:
- Fn::Equals:
- Ref: AWS::Region
- eu-north-1
- Fn::Equals:
- Ref: AWS::Region
- eu-west-1
- Fn::Equals:
- Ref: AWS::Region
- eu-west-2
- Fn::Equals:
- Ref: AWS::Region
- eu-west-3
- Fn::Equals:
- Ref: AWS::Region
- me-south-1
- Fn::Equals:
- Ref: AWS::Region
- sa-east-1
- Fn::Equals:
- Ref: AWS::Region
- us-east-1
- Fn::Equals:
- Ref: AWS::Region
- us-east-2
- Fn::Equals:
- Ref: AWS::Region
- us-west-1
- Fn::Equals:
- Ref: AWS::Region
- us-west-2