-
Notifications
You must be signed in to change notification settings - Fork 0
/
cloudformation.yaml
58 lines (45 loc) · 1.26 KB
/
cloudformation.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
49
50
51
52
53
54
55
56
57
58
AWSTemplateFormatVersion: 2010-09-09
Parameters:
PrivateBucket:
Description: Name of S3 bucket in which zipped output products will be archived
Type: String
LogBucket:
Type: String
CertificateArn:
Type: String
DomainName:
Type: String
CloudFrontKeyPairId:
Type: String
PrivateKeySecretName:
Type: String
AuthUrl:
Type: String
JwtCookieName:
Type: String
JwtPublicKey:
Type: String
Resources:
DoorStack:
Type: AWS::CloudFormation::Stack
Properties:
Parameters:
Name: !Sub "${AWS::StackName}-door"
CloudFrontDomainName: !GetAtt CloudFrontStack.Outputs.DomainName
CloudFrontKeyPairId: !Ref CloudFrontKeyPairId
PrivateKeySecretName: !Ref PrivateKeySecretName
PrivateBucket: !Ref PrivateBucket
CertificateArn: !Ref CertificateArn
DomainName: !Ref DomainName
AuthUrl: !Ref AuthUrl
JwtCookieName: !Ref JwtCookieName
JwtPublicKey: !Ref JwtPublicKey
TemplateURL: door/cloudformation.yaml
CloudFrontStack:
Type: AWS::CloudFormation::Stack
Properties:
Parameters:
Name: !Ref AWS::StackName
Bucket: !Ref PrivateBucket
LogBucket: !Ref LogBucket
TemplateURL: cloudfront/cloudformation.yaml