-
Notifications
You must be signed in to change notification settings - Fork 0
/
resources.json
49 lines (48 loc) · 1.22 KB
/
resources.json
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
{
"AWSTemplateFormatVersion": "2010-09-09",
"Parameters": {
"UserPoolName": {
"Type": "String",
"Description": "The name of the User Pool",
"Default": "yess_user_pool_dev"
},
"FileStorageBucketName": {
"Type": "String",
"Description": "The name of file storage bucket",
"Default": "yess-storage-bucket-dev"
}
},
"Resources": {
"UserPoolNameParameter": {
"Type": "AWS::SSM::Parameter",
"Properties": {
"Name": "UserPoolNameSSM",
"Type": "String",
"Value": { "Ref": "UserPoolName" }
}
},
"UserPool": {
"Type": "AWS::Cognito::UserPool",
"Properties": {
"UserPoolName": { "Ref": "UserPoolName" },
"UsernameAttributes": ["email"],
"AutoVerifiedAttributes": ["email"]
}
},
"FileStorageBucketNameParameter": {
"Type": "AWS::SSM::Parameter",
"Properties": {
"Name": "FileStorageBucketNameSSM",
"Type": "String",
"Value": { "Ref": "FileStorageBucketName" }
}
},
"S3Bucket": {
"Type": "AWS::S3::Bucket",
"Properties": {
"BucketName": { "Ref": "FileStorageBucketName" },
"AccessControl": "Private"
}
}
}
}