-
Notifications
You must be signed in to change notification settings - Fork 123
/
zz_ec2_setup.go
executable file
·224 lines (219 loc) · 13.1 KB
/
zz_ec2_setup.go
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
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
// SPDX-FileCopyrightText: 2024 The Crossplane Authors <https://crossplane.io>
//
// SPDX-License-Identifier: Apache-2.0
package controller
import (
ctrl "sigs.k8s.io/controller-runtime"
"github.com/crossplane/upjet/pkg/controller"
ami "github.com/upbound/provider-aws/internal/controller/ec2/ami"
amicopy "github.com/upbound/provider-aws/internal/controller/ec2/amicopy"
amilaunchpermission "github.com/upbound/provider-aws/internal/controller/ec2/amilaunchpermission"
availabilityzonegroup "github.com/upbound/provider-aws/internal/controller/ec2/availabilityzonegroup"
capacityreservation "github.com/upbound/provider-aws/internal/controller/ec2/capacityreservation"
carriergateway "github.com/upbound/provider-aws/internal/controller/ec2/carriergateway"
customergateway "github.com/upbound/provider-aws/internal/controller/ec2/customergateway"
defaultnetworkacl "github.com/upbound/provider-aws/internal/controller/ec2/defaultnetworkacl"
defaultroutetable "github.com/upbound/provider-aws/internal/controller/ec2/defaultroutetable"
defaultsecuritygroup "github.com/upbound/provider-aws/internal/controller/ec2/defaultsecuritygroup"
defaultsubnet "github.com/upbound/provider-aws/internal/controller/ec2/defaultsubnet"
defaultvpc "github.com/upbound/provider-aws/internal/controller/ec2/defaultvpc"
defaultvpcdhcpoptions "github.com/upbound/provider-aws/internal/controller/ec2/defaultvpcdhcpoptions"
ebsdefaultkmskey "github.com/upbound/provider-aws/internal/controller/ec2/ebsdefaultkmskey"
ebsencryptionbydefault "github.com/upbound/provider-aws/internal/controller/ec2/ebsencryptionbydefault"
ebssnapshot "github.com/upbound/provider-aws/internal/controller/ec2/ebssnapshot"
ebssnapshotcopy "github.com/upbound/provider-aws/internal/controller/ec2/ebssnapshotcopy"
ebssnapshotimport "github.com/upbound/provider-aws/internal/controller/ec2/ebssnapshotimport"
ebsvolume "github.com/upbound/provider-aws/internal/controller/ec2/ebsvolume"
egressonlyinternetgateway "github.com/upbound/provider-aws/internal/controller/ec2/egressonlyinternetgateway"
eip "github.com/upbound/provider-aws/internal/controller/ec2/eip"
eipassociation "github.com/upbound/provider-aws/internal/controller/ec2/eipassociation"
flowlog "github.com/upbound/provider-aws/internal/controller/ec2/flowlog"
host "github.com/upbound/provider-aws/internal/controller/ec2/host"
instance "github.com/upbound/provider-aws/internal/controller/ec2/instance"
instancestate "github.com/upbound/provider-aws/internal/controller/ec2/instancestate"
internetgateway "github.com/upbound/provider-aws/internal/controller/ec2/internetgateway"
keypair "github.com/upbound/provider-aws/internal/controller/ec2/keypair"
launchtemplate "github.com/upbound/provider-aws/internal/controller/ec2/launchtemplate"
mainroutetableassociation "github.com/upbound/provider-aws/internal/controller/ec2/mainroutetableassociation"
managedprefixlist "github.com/upbound/provider-aws/internal/controller/ec2/managedprefixlist"
managedprefixlistentry "github.com/upbound/provider-aws/internal/controller/ec2/managedprefixlistentry"
natgateway "github.com/upbound/provider-aws/internal/controller/ec2/natgateway"
networkacl "github.com/upbound/provider-aws/internal/controller/ec2/networkacl"
networkaclrule "github.com/upbound/provider-aws/internal/controller/ec2/networkaclrule"
networkinsightsanalysis "github.com/upbound/provider-aws/internal/controller/ec2/networkinsightsanalysis"
networkinsightspath "github.com/upbound/provider-aws/internal/controller/ec2/networkinsightspath"
networkinterface "github.com/upbound/provider-aws/internal/controller/ec2/networkinterface"
networkinterfaceattachment "github.com/upbound/provider-aws/internal/controller/ec2/networkinterfaceattachment"
networkinterfacesgattachment "github.com/upbound/provider-aws/internal/controller/ec2/networkinterfacesgattachment"
placementgroup "github.com/upbound/provider-aws/internal/controller/ec2/placementgroup"
route "github.com/upbound/provider-aws/internal/controller/ec2/route"
routetable "github.com/upbound/provider-aws/internal/controller/ec2/routetable"
routetableassociation "github.com/upbound/provider-aws/internal/controller/ec2/routetableassociation"
securitygroup "github.com/upbound/provider-aws/internal/controller/ec2/securitygroup"
securitygroupegressrule "github.com/upbound/provider-aws/internal/controller/ec2/securitygroupegressrule"
securitygroupingressrule "github.com/upbound/provider-aws/internal/controller/ec2/securitygroupingressrule"
securitygrouprule "github.com/upbound/provider-aws/internal/controller/ec2/securitygrouprule"
serialconsoleaccess "github.com/upbound/provider-aws/internal/controller/ec2/serialconsoleaccess"
snapshotcreatevolumepermission "github.com/upbound/provider-aws/internal/controller/ec2/snapshotcreatevolumepermission"
spotdatafeedsubscription "github.com/upbound/provider-aws/internal/controller/ec2/spotdatafeedsubscription"
spotfleetrequest "github.com/upbound/provider-aws/internal/controller/ec2/spotfleetrequest"
spotinstancerequest "github.com/upbound/provider-aws/internal/controller/ec2/spotinstancerequest"
subnet "github.com/upbound/provider-aws/internal/controller/ec2/subnet"
subnetcidrreservation "github.com/upbound/provider-aws/internal/controller/ec2/subnetcidrreservation"
tag "github.com/upbound/provider-aws/internal/controller/ec2/tag"
trafficmirrorfilter "github.com/upbound/provider-aws/internal/controller/ec2/trafficmirrorfilter"
trafficmirrorfilterrule "github.com/upbound/provider-aws/internal/controller/ec2/trafficmirrorfilterrule"
transitgateway "github.com/upbound/provider-aws/internal/controller/ec2/transitgateway"
transitgatewayconnect "github.com/upbound/provider-aws/internal/controller/ec2/transitgatewayconnect"
transitgatewayconnectpeer "github.com/upbound/provider-aws/internal/controller/ec2/transitgatewayconnectpeer"
transitgatewaymulticastdomain "github.com/upbound/provider-aws/internal/controller/ec2/transitgatewaymulticastdomain"
transitgatewaymulticastdomainassociation "github.com/upbound/provider-aws/internal/controller/ec2/transitgatewaymulticastdomainassociation"
transitgatewaymulticastgroupmember "github.com/upbound/provider-aws/internal/controller/ec2/transitgatewaymulticastgroupmember"
transitgatewaymulticastgroupsource "github.com/upbound/provider-aws/internal/controller/ec2/transitgatewaymulticastgroupsource"
transitgatewaypeeringattachment "github.com/upbound/provider-aws/internal/controller/ec2/transitgatewaypeeringattachment"
transitgatewaypeeringattachmentaccepter "github.com/upbound/provider-aws/internal/controller/ec2/transitgatewaypeeringattachmentaccepter"
transitgatewaypolicytable "github.com/upbound/provider-aws/internal/controller/ec2/transitgatewaypolicytable"
transitgatewayprefixlistreference "github.com/upbound/provider-aws/internal/controller/ec2/transitgatewayprefixlistreference"
transitgatewayroute "github.com/upbound/provider-aws/internal/controller/ec2/transitgatewayroute"
transitgatewayroutetable "github.com/upbound/provider-aws/internal/controller/ec2/transitgatewayroutetable"
transitgatewayroutetableassociation "github.com/upbound/provider-aws/internal/controller/ec2/transitgatewayroutetableassociation"
transitgatewayroutetablepropagation "github.com/upbound/provider-aws/internal/controller/ec2/transitgatewayroutetablepropagation"
transitgatewayvpcattachment "github.com/upbound/provider-aws/internal/controller/ec2/transitgatewayvpcattachment"
transitgatewayvpcattachmentaccepter "github.com/upbound/provider-aws/internal/controller/ec2/transitgatewayvpcattachmentaccepter"
volumeattachment "github.com/upbound/provider-aws/internal/controller/ec2/volumeattachment"
vpc "github.com/upbound/provider-aws/internal/controller/ec2/vpc"
vpcdhcpoptions "github.com/upbound/provider-aws/internal/controller/ec2/vpcdhcpoptions"
vpcdhcpoptionsassociation "github.com/upbound/provider-aws/internal/controller/ec2/vpcdhcpoptionsassociation"
vpcendpoint "github.com/upbound/provider-aws/internal/controller/ec2/vpcendpoint"
vpcendpointconnectionnotification "github.com/upbound/provider-aws/internal/controller/ec2/vpcendpointconnectionnotification"
vpcendpointroutetableassociation "github.com/upbound/provider-aws/internal/controller/ec2/vpcendpointroutetableassociation"
vpcendpointsecuritygroupassociation "github.com/upbound/provider-aws/internal/controller/ec2/vpcendpointsecuritygroupassociation"
vpcendpointservice "github.com/upbound/provider-aws/internal/controller/ec2/vpcendpointservice"
vpcendpointserviceallowedprincipal "github.com/upbound/provider-aws/internal/controller/ec2/vpcendpointserviceallowedprincipal"
vpcendpointsubnetassociation "github.com/upbound/provider-aws/internal/controller/ec2/vpcendpointsubnetassociation"
vpcipam "github.com/upbound/provider-aws/internal/controller/ec2/vpcipam"
vpcipampool "github.com/upbound/provider-aws/internal/controller/ec2/vpcipampool"
vpcipampoolcidr "github.com/upbound/provider-aws/internal/controller/ec2/vpcipampoolcidr"
vpcipampoolcidrallocation "github.com/upbound/provider-aws/internal/controller/ec2/vpcipampoolcidrallocation"
vpcipamscope "github.com/upbound/provider-aws/internal/controller/ec2/vpcipamscope"
vpcipv4cidrblockassociation "github.com/upbound/provider-aws/internal/controller/ec2/vpcipv4cidrblockassociation"
vpcpeeringconnection "github.com/upbound/provider-aws/internal/controller/ec2/vpcpeeringconnection"
vpcpeeringconnectionaccepter "github.com/upbound/provider-aws/internal/controller/ec2/vpcpeeringconnectionaccepter"
vpcpeeringconnectionoptions "github.com/upbound/provider-aws/internal/controller/ec2/vpcpeeringconnectionoptions"
vpnconnection "github.com/upbound/provider-aws/internal/controller/ec2/vpnconnection"
vpnconnectionroute "github.com/upbound/provider-aws/internal/controller/ec2/vpnconnectionroute"
vpngateway "github.com/upbound/provider-aws/internal/controller/ec2/vpngateway"
vpngatewayattachment "github.com/upbound/provider-aws/internal/controller/ec2/vpngatewayattachment"
vpngatewayroutepropagation "github.com/upbound/provider-aws/internal/controller/ec2/vpngatewayroutepropagation"
)
// Setup_ec2 creates all controllers with the supplied logger and adds them to
// the supplied manager.
func Setup_ec2(mgr ctrl.Manager, o controller.Options) error {
for _, setup := range []func(ctrl.Manager, controller.Options) error{
ami.Setup,
amicopy.Setup,
amilaunchpermission.Setup,
availabilityzonegroup.Setup,
capacityreservation.Setup,
carriergateway.Setup,
customergateway.Setup,
defaultnetworkacl.Setup,
defaultroutetable.Setup,
defaultsecuritygroup.Setup,
defaultsubnet.Setup,
defaultvpc.Setup,
defaultvpcdhcpoptions.Setup,
ebsdefaultkmskey.Setup,
ebsencryptionbydefault.Setup,
ebssnapshot.Setup,
ebssnapshotcopy.Setup,
ebssnapshotimport.Setup,
ebsvolume.Setup,
egressonlyinternetgateway.Setup,
eip.Setup,
eipassociation.Setup,
flowlog.Setup,
host.Setup,
instance.Setup,
instancestate.Setup,
internetgateway.Setup,
keypair.Setup,
launchtemplate.Setup,
mainroutetableassociation.Setup,
managedprefixlist.Setup,
managedprefixlistentry.Setup,
natgateway.Setup,
networkacl.Setup,
networkaclrule.Setup,
networkinsightsanalysis.Setup,
networkinsightspath.Setup,
networkinterface.Setup,
networkinterfaceattachment.Setup,
networkinterfacesgattachment.Setup,
placementgroup.Setup,
route.Setup,
routetable.Setup,
routetableassociation.Setup,
securitygroup.Setup,
securitygroupegressrule.Setup,
securitygroupingressrule.Setup,
securitygrouprule.Setup,
serialconsoleaccess.Setup,
snapshotcreatevolumepermission.Setup,
spotdatafeedsubscription.Setup,
spotfleetrequest.Setup,
spotinstancerequest.Setup,
subnet.Setup,
subnetcidrreservation.Setup,
tag.Setup,
trafficmirrorfilter.Setup,
trafficmirrorfilterrule.Setup,
transitgateway.Setup,
transitgatewayconnect.Setup,
transitgatewayconnectpeer.Setup,
transitgatewaymulticastdomain.Setup,
transitgatewaymulticastdomainassociation.Setup,
transitgatewaymulticastgroupmember.Setup,
transitgatewaymulticastgroupsource.Setup,
transitgatewaypeeringattachment.Setup,
transitgatewaypeeringattachmentaccepter.Setup,
transitgatewaypolicytable.Setup,
transitgatewayprefixlistreference.Setup,
transitgatewayroute.Setup,
transitgatewayroutetable.Setup,
transitgatewayroutetableassociation.Setup,
transitgatewayroutetablepropagation.Setup,
transitgatewayvpcattachment.Setup,
transitgatewayvpcattachmentaccepter.Setup,
volumeattachment.Setup,
vpc.Setup,
vpcdhcpoptions.Setup,
vpcdhcpoptionsassociation.Setup,
vpcendpoint.Setup,
vpcendpointconnectionnotification.Setup,
vpcendpointroutetableassociation.Setup,
vpcendpointsecuritygroupassociation.Setup,
vpcendpointservice.Setup,
vpcendpointserviceallowedprincipal.Setup,
vpcendpointsubnetassociation.Setup,
vpcipam.Setup,
vpcipampool.Setup,
vpcipampoolcidr.Setup,
vpcipampoolcidrallocation.Setup,
vpcipamscope.Setup,
vpcipv4cidrblockassociation.Setup,
vpcpeeringconnection.Setup,
vpcpeeringconnectionaccepter.Setup,
vpcpeeringconnectionoptions.Setup,
vpnconnection.Setup,
vpnconnectionroute.Setup,
vpngateway.Setup,
vpngatewayattachment.Setup,
vpngatewayroutepropagation.Setup,
} {
if err := setup(mgr, o); err != nil {
return err
}
}
return nil
}