-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathcluster.yml
46 lines (36 loc) · 1.07 KB
/
cluster.yml
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
---
AWSTemplateFormatVersion: '2010-09-09'
Description: 'EKS Deployment for Jupyter ES'
Parameters:
ClusterName:
Type: String
Description: Cluster Name
Default: JupyterES
ControlPlaneSecurityGroup:
Type: String
Description: Control Plane Security Group
Subnets:
Description: The subnets where workers can be created.
Type: List<AWS::EC2::Subnet::Id>
Resources:
EKSCluster:
Type: "AWS::EKS::Cluster"
Properties:
Name: !Ref ClusterName
ResourcesVpcConfig:
SecurityGroupIds:
- !Ref ControlPlaneSecurityGroup
#SubnetIds: [ !Ref Subnet01, !Ref Subnet02, !Ref Subnet03 ]
SubnetIds: !Ref Subnets
RoleArn: !ImportValue JupyterES-role-RoleArn
Outputs:
ClusterControlPanelSecurityGroup:
Description: Security group for the cluster control plane communication with worker nodes
Value: !Ref ControlPlaneSecurityGroup
# Export:
# Name: ClusterControlPlaneSecurityGroup
Cluster:
Description: Cluster Name
Value: !Ref EKSCluster
# Export:
# Name: ClusterName