-
Notifications
You must be signed in to change notification settings - Fork 1
/
serverless-pypi.yaml
48 lines (44 loc) · 1.29 KB
/
serverless-pypi.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
48
AWSTemplateFormatVersion: '2010-09-09'
Transform: AWS::Serverless-2016-10-31
Description: >
Main template for serverless PyPi
Parameters:
Stage:
Type: String
Description: Stage for deployment.
Domain:
Type: String
Description: Domain used for API
FunctionStackURL:
Type: String
Description: S3 Location for Function Stack
ACMStackURL:
Type: String
Description: S3 Location for ACM Stack
APIGWStackURL:
Type: String
Description: S3 Location for APIGW Stack
Resources:
FunctionStack:
Type: AWS::CloudFormation::Stack
Properties:
TemplateURL: !Ref FunctionStackURL
ACMStack:
Type: AWS::CloudFormation::Stack
Properties:
Parameters:
Stage: !Ref Stage
Domain: !Ref Domain
TemplateURL: !Ref ACMStackURL
APIGWStack:
Type: AWS::CloudFormation::Stack
Properties:
Parameters:
Stage: !Ref Stage
Domain: !Ref Domain
AuthorizerArn: !GetAtt FunctionStack.Outputs.AuthorizerFunctionArn
JWTCreatorArn: !GetAtt FunctionStack.Outputs.JWTProviderFunctionArn
PackageTableName: !GetAtt FunctionStack.Outputs.PackageTableName
ACMCertArn: !GetAtt ACMStack.Outputs.ACMCertArn
RedirectFunctionArn: !GetAtt FunctionStack.Outputs.RedirectFunctionArn
TemplateURL: !Ref APIGWStackURL