-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathcreate_sm_with_peering.yaml
More file actions
148 lines (119 loc) · 4.17 KB
/
create_sm_with_peering.yaml
File metadata and controls
148 lines (119 loc) · 4.17 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
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
Description: "Create a SM relationship between two volumes. Includes peering the clusters and vservers. It assumes the destination volume does not exist and will create it."
Parameters:
SourceLinkArn:
Description: "The ARN to the Lambda link function."
Type: String
SourceSecretArn:
Description: "The Secret ARN that holds the source fsxadmin password."
Type: String
SourceSecretKey:
Description: "The key to use within the AWS secret that holds the faxadmin password."
Default: "password"
Type: String
SourceFileSystemId:
Description: "The File System ID of the source volume."
Type: String
SourceSvmName:
Description: "The SVM name that holds the source volume."
Type: String
SourceVolumeName:
Description: "The name of the source volume."
Type: String
DestinationLinkArn:
Description: "The ARN to the Lambda link function that manages the destination FSxN file system."
Type: String
DestinationSecretArn:
Description: "The Secret ARN that holds the destination fsxadmin password."
Type: String
DestinationSecretKey:
Description: "The key to use within the AWS secret that holds the destination fsxadmin password."
Default: "password"
Type: String
DestinationFileSystemId:
Description: "The File System ID of the destination file system."
Type: String
DestinationSvmName:
Description: "The name of the SVM that holds the destination volume."
Type: String
DestinationVolumeName:
Description: "The name of the destination volume."
Type: String
DestinationAggregate:
Description: "The aggregate to use when creating the destination volume."
Type: CommaDelimitedList
Default: "aggr1"
Policy:
Description: "The SnapMirror policy to use."
Type: String
Default: "MirrorAllSnapshots"
Reverse:
Description: "Reverse the relationship. Can be set to 'true' during an CloudFormation update to reverse the relationship."
Type: String
Default: "false"
Resources:
SnapMirrorRelationship:
Type: "NetApp::FSxN::SnapMirror"
DependsOn: "SvmPeerRelations"
Properties:
FsxAdminPasswordSource:
Secret:
SecretArn: !Ref SourceSecretArn
SecretKey: !Ref SourceSecretKey
FileSystemId: !Ref SourceFileSystemId
LinkArn: !Ref SourceLinkArn
FsxnDestinationInfo:
FsxAdminPasswordSource:
Secret:
SecretArn: !Ref DestinationSecretArn
SecretKey: !Ref DestinationSecretKey
FileSystemId: !Ref DestinationFileSystemId
LinkArn: !Ref DestinationLinkArn
SnapMirrorSourceEndpoint:
SVM:
Name: !Ref SourceSvmName
Volume: !Ref SourceVolumeName
SnapMirrorEndpoint:
SVM:
Name: !Ref DestinationSvmName
Volume: !Ref DestinationVolumeName
SnapMirrorDestinationCreation:
Aggregates: !Ref DestinationAggregate
Policy: !Ref Policy
Reverse: !Ref Reverse
ClusterPeerRelations:
Type: "NetApp::FSxN::ClusterPeer"
Properties:
FsxAdminPasswordSource:
Secret:
SecretArn: !Ref SourceSecretArn
SecretKey: !Ref SourceSecretKey
FileSystemId: !Ref SourceFileSystemId
LinkArn: !Ref SourceLinkArn
FsxnDestinationInfo:
FsxAdminPasswordSource:
Secret:
SecretArn: !Ref DestinationSecretArn
SecretKey: !Ref DestinationSecretKey
FileSystemId: !Ref DestinationFileSystemId
LinkArn: !Ref DestinationLinkArn
SvmPeerRelations:
Type: "NetApp::FSxN::SvmPeer"
DependsOn: "ClusterPeerRelations"
Properties:
FsxAdminPasswordSource:
Secret:
SecretArn: !Ref SourceSecretArn
SecretKey: !Ref SourceSecretKey
FileSystemId: !Ref SourceFileSystemId
LinkArn: !Ref SourceLinkArn
FsxnDestinationInfo:
FsxAdminPasswordSource:
Secret:
SecretArn: !Ref DestinationSecretArn
SecretKey: !Ref DestinationSecretKey
FileSystemId: !Ref DestinationFileSystemId
LinkArn: !Ref DestinationLinkArn
PeerSvmName: !Ref DestinationSvmName
SVM:
Name: !Ref SourceSvmName
Applications: ["snapmirror"]