@@ -16,10 +16,9 @@ Parameters:
1616 Description : This name is used as a prefix for resource names
1717 Default : rain-webapp
1818
19- Resources :
20-
19+ Modules :
2120 Site :
22- Type : !Rain::Module " ../../modules/static-site.yaml"
21+ Source : ../../modules/static-site.yaml
2322 Properties :
2423 AppName : !Ref AppName
2524 Overrides :
@@ -41,7 +40,7 @@ Resources:
4140 - Rain::OutputValue AppClientId
4241
4342 Cognito :
44- Type : !Rain::Module " ../../modules/cognito.yaml"
43+ Source : ../../modules/cognito.yaml
4544 Properties :
4645 AppName : !Ref AppName
4746 CallbackURL : !Sub "https://${SiteDistribution.DomainName}/index.html"
@@ -50,7 +49,7 @@ Resources:
5049 DependsOn : SiteDistribution
5150
5251 Rest :
53- Type : !Rain::Module " ../../modules/rest-api.yaml"
52+ Source : ../../modules/rest-api.yaml
5453 Properties :
5554 AppName : !Ref AppName
5655 UserPoolArn : !GetAtt CognitoUserPool.Arn
@@ -65,15 +64,15 @@ Resources:
6564 - JwtResourceOptions
6665
6766 TestResource :
68- Type : !Rain::Module " ../../modules/api-resource.yaml"
67+ Source : ../../modules/api-resource.yaml
6968 Metadata :
7069 Comment : This module handles all methods on the /test path on the API. The lambda function code is located in api/resources/test.
7170 Properties :
7271 Name : !Sub ${AppName}-test
7372 RestApi : !Ref RestApi
7473 RestApiDeployment : !Ref RestApiDeployment
75- BuildScript : ../test/webapp/ buildapi.sh
76- CodePath : ../test/webapp/ api/dist/test/lambda-handler.zip
74+ BuildScript : buildapi.sh
75+ CodePath : api/dist/test/lambda-handler.zip
7776 ResourcePath : test
7877 StageName : staging
7978 AuthorizerId : !Ref RestApiAuthorizer
@@ -85,21 +84,21 @@ Resources:
8584 TABLE_NAME : !Ref TestDataTable
8685
8786 TestData :
88- Type : !Rain::Module " ../../modules/simple-table.yaml"
87+ Source : ../../modules/simple-table.yaml
8988 Properties :
9089 TableName : !Sub ${AppName}-test
9190 LambdaRole : !Ref TestResourceHandlerRole
9291
9392 JwtResource :
94- Type : !Rain::Module " ../../modules/api-resource.yaml"
93+ Source : ../../modules/api-resource.yaml
9594 Metadata :
9695 Comment : This module handles all methods on the /jwt path on the API. The lambda function code is located in api/resources/jwt
9796 Properties :
9897 Name : !Sub ${AppName}-jwt
9998 RestApi : !Ref RestApi
10099 RestApiDeployment : !Ref RestApiDeployment
101- BuildScript : ../test/webapp/ buildapi.sh
102- CodePath : ../test/webapp/ api/dist/jwt/lambda-handler.zip
100+ BuildScript : buildapi.sh
101+ CodePath : api/dist/jwt/lambda-handler.zip
103102 ResourcePath : jwt
104103 StageName : staging
105104 AuthorizerId : AWS::NoValue
@@ -136,4 +135,3 @@ Outputs:
136135
137136 CognitoDomainPrefix :
138137 Value : !Ref AppName
139-
0 commit comments