-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathresources.ts
50 lines (49 loc) · 1.84 KB
/
resources.ts
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
import { AwsResources } from './src/types/aws/resources'
const resources: AwsResources = {
Resources: {
// ActivityTable: {
// Type: 'AWS::DynamoDB::Table',
// Properties: {
// TableName: '${self:custom.prefix}-activity-table',
// BillingMode: 'PAY_PER_REQUEST',
// AttributeDefinitions: [
// { AttributeName: 'id', AttributeType: 'S' },
// ],
// KeySchema: [{ AttributeName: 'id', KeyType: 'HASH' }],
// },
// },
UsersTable: {
Type: 'AWS::DynamoDB::Table',
Properties: {
TableName: '${self:custom.prefix}-tokens-table',
BillingMode: 'PAY_PER_REQUEST',
AttributeDefinitions: [
{ AttributeName: 'accessToken', AttributeType: 'S' },
],
KeySchema: [{ AttributeName: 'accessToken', KeyType: 'HASH' }],
},
},
// ClientBrandingBucket: {
// Type: 'AWS::S3::Bucket',
// Properties: {
// BucketName: '${self:custom.brandingBucketName}',
// AccessControl: 'PublicReadWrite',
// PublicAccessBlockConfiguration: {
// BlockPublicAcls: false,
// BlockPublicPolicy: false,
// IgnorePublicAcls: false,
// RestrictPublicBuckets: false,
// },
// CorsConfiguration: {
// CorsRules: [
// {
// AllowedMethods: ['GET', 'POST'],
// AllowedOrigins: ['*'],
// },
// ],
// },
// },
// },
},
}
export { resources as default }