This repository was archived by the owner on Apr 11, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 218
Expand file tree
/
Copy pathfixitfast-cache-stack.yaml
More file actions
81 lines (81 loc) · 2.77 KB
/
Copy pathfixitfast-cache-stack.yaml
File metadata and controls
81 lines (81 loc) · 2.77 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
80
81
---
template:
templateName: FixItFast-Cache-Stack
templateVersion: 1.0.0
templateDescription: Stack template to create simple ACCS
parameters:
appFrontEndURL:
label: Front End App archive cloud URL
description: Location inside Storage from where the frontend app archive can be downloaded from
type: String
mandatory: true
default: xweek/fixitfast-client.zip
appBackEndNodeURL:
label: Back End Node App archive cloud URL
description: Location inside Storage from where the backend node app archive can be downloaded from
type: String
mandatory: true
default: xweek/fixitfast-backend.zip
appBackEndJavaURL:
label: Back End Java App archive cloud URL
description: Location inside Storage from where the backend java app archive can be downloaded from
type: String
mandatory: true
default: xweek/fixitfast-java-cache-backend.zip
resources:
customerCache:
type: caching
parameters:
serviceParameters:
serviceName: customerCache
serviceLevel: PAAS
subscription: HOURLY
serviceDescription: Customer Cache for FixItFast application
backendCacheJavaApp:
type: apaas
parameters:
name: backendCacheJava
runtime: java
subscription: MONTHLY
archiveURL:
Fn::GetParam: appBackEndJavaURL
deployment:
memory: 1G
instances: 1
services:
-
identifier: CacheBinding
name:
Fn::GetAtt:
- customerCache
- serviceName
type: caching
backendNodeApp:
type: apaas
parameters:
name: backendNode
runtime: node
subscription: MONTHLY
archiveURL:
Fn::GetParam: appBackEndNodeURL
deployment:
memory: 1G
instances: 1
services:
clientApp:
type: apaas
parameters:
name: client
runtime: node
subscription: MONTHLY
archiveURL:
Fn::GetParam: appFrontEndURL
deployment:
memory: 1G
instances: 1
services:
environment:
{
"REST_FIXIT" : { "Fn::GetAtt" : [ "backendNodeApp", "attributes.webURL.value" ] },
"REST_CUSTOMERS" : { "Fn::GetAtt" : [ "backendCacheJavaApp", "attributes.webURL.value" ] }
}