-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathcreate_volume.yaml
More file actions
107 lines (88 loc) · 2.72 KB
/
create_volume.yaml
File metadata and controls
107 lines (88 loc) · 2.72 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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
Description: "Create an FSx for ONTAP volume with autosize parameters so they can be 'updated' later."
Parameters:
FileSystemId:
Description: "The File System ID."
Type: String
SecretArn:
Description: "The Secret ARN that holds the fsxadmin password."
Type: String
SecretKey:
Description: "The key to use within the AWS secret that holds the fsxadmin password."
Default: "password"
Type: String
LinkArn:
Description: "The ARN to the Lambda link function."
Type: String
SvmName:
Description: "The SVM Name."
Type: String
VolumeName:
Description: "The Volume Name."
Type: String
Size:
Description: "The size of the volume in bytes."
Type: Number
Default: 20971520
MinValue: 20971520
Aggregates:
Description: "The aggregates to use."
Type: CommaDelimitedList
AutoSizeMode:
Description: "The mode of the auto size. The supported values are 'grow', 'grow_shrink' or 'off'."
Type: String
AllowedValues: ["off", "grow", "grow_shrink"]
Default: "off"
MinimumShrinkSize:
Description: "The minimum size the volume can shrink to in bytes."
Type: Number
MinValue: 20971520
Default: 20971520
MaximumGrowSize:
Type: Number
Description: "The maximum size of the volume can grow to in bytes. Default is a 160TB."
Default: 175921860444160
GrowThresholdPercentage:
Description: "The percentage of the volume size at which the volume is considered full."
Default: 80
MaxValue: 100
MinValue: 0
Type: Number
ShrinkThresholdPercentage:
Description: "The percentage of the volume size at which the volume is considered empty."
Default: 50
MaxValue: 100
MinValue: 0
Type: Number
State:
Description: "The state of the volume. Either 'online', 'offline' or 'restricted'. Defaults to 'online'."
Type: String
Default: "online"
AllowedValues: ["online", "offline", "restricted"]
Type:
Description: "The type of the volume. Either 'rw' or 'dp'. Defaults to 'rw'."
Type: String
Default: "rw"
AllowedValues: ["rw", "dp"]
Resources:
FSxNVolume:
Type: "NetApp::FSxN::Volume"
Properties:
FsxAdminPasswordSource:
Secret:
SecretArn: !Ref SecretArn
SecretKey: !Ref SecretKey
FileSystemId: !Ref FileSystemId
LinkArn: !Ref LinkArn
SVM:
Name: !Ref SvmName
Name: !Ref VolumeName
Size: !Ref Size
Aggregates: !Ref Aggregates
State: !Ref State
Type: !Ref Type
Autosize:
Mode: !Ref AutoSizeMode
Minimum: !Ref MinimumShrinkSize
Maximum: !Ref MaximumGrowSize
GrowThreshold: !Ref GrowThresholdPercentage
ShrinkThreshold: !Ref ShrinkThresholdPercentage