forked from aws-samples/cloudfront-authorization-at-edge
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathreuse-complete.yaml
30 lines (27 loc) · 1.07 KB
/
reuse-complete.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
# Copyright 2021 Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: MIT-0
AWSTemplateFormatVersion: "2010-09-09"
Transform: AWS::Serverless-2016-10-31
Description: >
Example stack that shows how to reuse the serverless application and include your own resources
Resources:
MyLambdaEdgeProtectedSpaSetup:
Type: AWS::Serverless::Application
Properties:
Location:
ApplicationId: arn:aws:serverlessrepo:us-east-1:520945424137:applications/cloudfront-authorization-at-edge
SemanticVersion: 2.1.9
AlanTuring:
Type: AWS::Cognito::UserPoolUser
Properties:
Username: [email protected]
UserPoolId: !GetAtt MyLambdaEdgeProtectedSpaSetup.Outputs.UserPoolId
EdsgerDijkstra:
Type: AWS::Cognito::UserPoolUser
Properties:
Username: [email protected]
UserPoolId: !GetAtt MyLambdaEdgeProtectedSpaSetup.Outputs.UserPoolId
Outputs:
MySpaS3Bucket:
Description: The S3 Bucket into which my SPA will be uploaded
Value: !GetAtt MyLambdaEdgeProtectedSpaSetup.Outputs.S3Bucket