-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathutilities.yaml
55 lines (46 loc) · 1.12 KB
/
utilities.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
---
AWSTemplateFormatVersion: '2010-09-09'
Description: 'Utilities for Jupyter ES'
Parameters:
Subnets:
Description: The subnets where workers can be created.
Type: List<AWS::EC2::Subnet::Id>
NodeSecurityGroup:
Description: The security group of the spot worker nodes
Type: List<AWS::EC2::SecurityGroup::Id>
Resources:
HomeEFS:
Type: AWS::EFS::FileSystem
Properties:
Encrypted: true
MountTarget1:
Type: AWS::EFS::MountTarget
Properties:
FileSystemId: !Ref HomeEFS
SubnetId:
Fn::Select:
- '0'
- Ref: Subnets
SecurityGroups: !Ref NodeSecurityGroup
MountTarget2:
Type: AWS::EFS::MountTarget
Properties:
FileSystemId: !Ref HomeEFS
SubnetId:
Fn::Select:
- '1'
- Ref: Subnets
SecurityGroups: !Ref NodeSecurityGroup
MountTarget3:
Type: AWS::EFS::MountTarget
Properties:
FileSystemId: !Ref HomeEFS
SubnetId:
Fn::Select:
- '2'
- Ref: Subnets
SecurityGroups: !Ref NodeSecurityGroup
Outputs:
EfsId:
Description: HomeEFSId
Value: !Ref HomeEFS