1- service : durianpy -events-api
2- frameworkVersion : ' ^3.40.0'
1+ service : sparcs -events-api
2+ frameworkVersion : " ^3.40.0"
33
44custom :
5- projectName : durianpy -events
5+ projectName : sparcs -events
66 serviceName : events
77 stage : ${opt:stage, self:provider.stage}
88 paymentQueue : ${self:custom.stage}-${self:custom.projectName}-payment-queue.fifo
@@ -16,12 +16,9 @@ custom:
1616 # konfHubApiKey: ${ssm:/konfhub/api-key-${self:custom.stage}}
1717 betterCredentials :
1818 enabled : true
19- emailQueue :
20- !ImportValue EmailQueue-${self:custom.stage}
21- certificateQueue :
22- !ImportValue CertificateQueue-${self:custom.stage}
23- basicAuthorizerARN :
24- !ImportValue BasicAuthAuthorizerARN-${self:custom.stage}
19+ emailQueue : !ImportValue EmailQueue-${self:custom.stage}
20+ certificateQueue : !ImportValue CertificateQueue-${self:custom.stage}
21+ basicAuthorizerARN : !ImportValue BasicAuthAuthorizerARN-${self:custom.stage}
2522 pythonRequirements :
2623 dockerizePip : true
2724 usePoetry : false
@@ -30,7 +27,7 @@ custom:
3027 - boto3
3128 - botocore
3229 layer :
33- name : durianpy -events-${self:custom.stage}-python-requirements
30+ name : sparcs -events-${self:custom.stage}-python-requirements
3431 compatibleRuntimes :
3532 - python3.11
3633 slim : true
@@ -65,16 +62,13 @@ provider:
6562 CERTIFICATE_QUEUE : ${self:custom.certificateQueue}
6663 S3_BUCKET : ${self:custom.bucket}
6764 # KONFHUB_API_KEY: ${self:custom.konfHubApiKey}
68- USER_POOL_ID :
69- !ImportValue UserPoolId-${self:custom.stage}
70- USER_POOL_CLIENT_ID :
71- !ImportValue AppClientId-${self:custom.stage}
65+ USER_POOL_ID : !ImportValue UserPoolId-${self:custom.stage}
66+ USER_POOL_CLIENT_ID : !ImportValue AppClientId-${self:custom.stage}
7267 SPARCS_GMAIL : sparcsup@gmail.com
7368 logs :
7469 restApi :
7570 role : !GetAtt ApiGatewayCloudWatchRole.Arn
7671
77-
7872resources :
7973 - ${file(resources/dynamodb.yml)}
8074 - ${file(resources/api_gateway.yml)}
@@ -88,30 +82,29 @@ resources:
8882 AssumeRolePolicyDocument :
8983 Version : " 2012-10-17"
9084 Statement :
91- - Effect : Allow
92- Principal :
93- Service : apigateway.amazonaws.com
94- Action : sts:AssumeRole
85+ - Effect : Allow
86+ Principal :
87+ Service : apigateway.amazonaws.com
88+ Action : sts:AssumeRole
9589 Policies :
9690 - PolicyName : AllowCloudWatchLogs
9791 PolicyDocument :
9892 Version : " 2012-10-17"
9993 Statement :
100- - Effect : Allow
101- Action :
102- - logs:CreateLogGroup
103- - logs:CreateLogStream
104- - logs:DescribeLogGroups
105- - logs:DescribeLogStreams
106- - logs:PutLogEvents
107- Resource : " *"
94+ - Effect : Allow
95+ Action :
96+ - logs:CreateLogGroup
97+ - logs:CreateLogStream
98+ - logs:DescribeLogGroups
99+ - logs:DescribeLogStreams
100+ - logs:PutLogEvents
101+ Resource : " *"
108102 Outputs :
109103 ApiGatewayCloudWatchRoleArn :
110104 Value : !GetAtt ApiGatewayCloudWatchRole.Arn
111105 Export :
112106 Name : ApiGatewayCloudWatchRole-${self:custom.serviceName}-${self:custom.stage}
113107
114-
115108functions :
116109 - ${file(resources/api.yml)}
117110 - ${file(resources/functions.yml)}
0 commit comments