Repository navigation
Expand file tree
/
Copy pathcp2-PrivateAppPushMessage.yaml
More file actions
79 lines (79 loc) · 2.48 KB
/
Copy pathcp2-PrivateAppPushMessage.yaml
File metadata and controls
79 lines (79 loc) · 2.48 KB
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
# Listing of DevOps Components for 'Register App Push' Microservice.
# starting API gateway creation using main base template
'1':
DisplayName: 'CP-Public-API-GW-creation'
ApiGatewayStageName: dev
ApiGatewayName: CarePartner-Public-Api-Gateway
DomainName: eyoceu.clcloud.me
BasePath: cum
Deploy: 'true'
BaseTemplate: cum-apigateway-main
StackName: Prod-CarePartnerAPIGW-Public
# creating API GW resource
'2':
DisplayName: 'CP-Public-API-GW-root-resource'
ResourceID: CumApiGatewayResourceConnect
PathPart: connect
Deploy: 'true'
BaseTemplate: cum-apigateway-root-resource
Merge: '1'
# creating API GW resource
'3':
DisplayName: 'Public-API-GW-resource-pde'
ResourceID: ApiGatewayResourcepde
PathPart: pde
ParentResourceID: CumApiGatewayResourceConnect
Deploy: 'true'
BaseTemplate: cum-apigateway-resource
Merge: '1'
# creating API GW resource
'4':
DisplayName: 'Public-API-GW-resource-v2'
ResourceID: ApiGatewayResourceV2
PathPart: v2
ParentResourceID: ApiGatewayResourcepde
Deploy: 'true'
BaseTemplate: cum-apigateway-resource
Merge: '1'
# creating API GW resource
'5':
DisplayName: 'Public-API-GW-resource-appPushMessage'
ResourceID: ApiGatewayResourceappPushMessage
PathPart: appPushMessage
ParentResourceID: ApiGatewayResourceV2
Deploy: 'true'
BaseTemplate: cum-apigateway-resource
Merge: '1'
# creating API GW method for non-root resource
'6':
DisplayName: 'Public-API-GW-Method-CumAPIappPushMessage'
ApiGatewayMethodID: ApiGatewayMethodappPushMessage
HttpMethod: POST
IntegrationHttpMethod: POST
FunctionName: CumAPIappPushMessage
ResourceID: ApiGatewayResourceappPushMessage
Deploy: 'true'
BaseTemplate: cum-apigateway-method
Merge: '1'
# Adding lambda invoke permissions
'7':
DisplayName: 'Public-API-GW-Invoke-CumApiPdeAppPushMessage'
LambdaInvokeID: ApiGatewayMethodappPushMessageInvoke
FunctionName: CumApiPdeAppPushMessage
ApiGatewayMethodID: ApiGatewayMethodappPushMessage
Deploy: 'true'
BaseTemplate: cum-apigateway-lambda-permission
Merge: '1'
# Deploying API GW with hardcoded dependancies
'8':
DisplayName: 'CP-Public-API-GW-Deploy'
Deploy: 'true'
BaseTemplate: cp-public-apigateway-deploy
Merge: '1'
# exporting API GW in cloudformation
'9':
DisplayName: 'CP-Public-API-GW-Export'
ExportName: CarePartner-Public-APIGateway
Deploy: 'true'
BaseTemplate: cum-apigateway-output
Merge: '1'