pulumi-alicloud 3.56.0a1717175543__py3-none-any.whl → 3.57.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- pulumi_alicloud/__init__.py +72 -0
- pulumi_alicloud/cen/get_transit_router_available_resources.py +32 -11
- pulumi_alicloud/cen/outputs.py +23 -1
- pulumi_alicloud/cfg/remediation.py +10 -2
- pulumi_alicloud/clickhouse/db_cluster.py +47 -0
- pulumi_alicloud/cms/__init__.py +1 -0
- pulumi_alicloud/cms/_inputs.py +18 -18
- pulumi_alicloud/cms/alarm.py +38 -26
- pulumi_alicloud/cms/get_site_monitors.py +243 -0
- pulumi_alicloud/cms/outputs.py +92 -18
- pulumi_alicloud/cs/node_pool.py +7 -7
- pulumi_alicloud/ecs/_inputs.py +10 -14
- pulumi_alicloud/ecs/image_import.py +162 -100
- pulumi_alicloud/ecs/outputs.py +10 -14
- pulumi_alicloud/ecs/security_group_rule.py +2 -2
- pulumi_alicloud/eds/network_package.py +22 -8
- pulumi_alicloud/expressconnect/__init__.py +8 -0
- pulumi_alicloud/expressconnect/_inputs.py +40 -0
- pulumi_alicloud/expressconnect/outputs.py +51 -0
- pulumi_alicloud/expressconnect/router_express_connect_router.py +458 -0
- pulumi_alicloud/expressconnect/router_tr_association.py +578 -0
- pulumi_alicloud/expressconnect/router_vbr_child_instance.py +475 -0
- pulumi_alicloud/expressconnect/router_vpc_association.py +500 -0
- pulumi_alicloud/expressconnect/traffic_qos.py +284 -0
- pulumi_alicloud/expressconnect/traffic_qos_association.py +336 -0
- pulumi_alicloud/expressconnect/traffic_qos_queue.py +520 -0
- pulumi_alicloud/expressconnect/traffic_qos_rule.py +1174 -0
- pulumi_alicloud/gpdb/__init__.py +1 -0
- pulumi_alicloud/gpdb/db_resource_group.py +364 -0
- pulumi_alicloud/gpdb/instance.py +47 -0
- pulumi_alicloud/hbase/get_instance_types.py +2 -2
- pulumi_alicloud/mongodb/instance.py +7 -7
- pulumi_alicloud/oss/bucket_cors.py +8 -4
- pulumi_alicloud/oss/bucket_data_redundancy_transition.py +12 -4
- pulumi_alicloud/oss/bucket_public_access_block.py +12 -4
- pulumi_alicloud/ots/instance.py +7 -7
- pulumi_alicloud/ots/table.py +149 -8
- pulumi_alicloud/pulumi-plugin.json +1 -1
- pulumi_alicloud/sae/load_balancer_internet.py +4 -2
- pulumi_alicloud/sae/load_balancer_intranet.py +4 -2
- pulumi_alicloud/servicemesh/_inputs.py +0 -6
- pulumi_alicloud/servicemesh/outputs.py +0 -6
- pulumi_alicloud/servicemesh/service_mesh.py +2 -2
- pulumi_alicloud/simpleapplicationserver/snapshot.py +10 -2
- pulumi_alicloud/vpc/bgp_peer.py +36 -8
- pulumi_alicloud/vpc/network.py +0 -4
- pulumi_alicloud/vpn/connection.py +220 -0
- pulumi_alicloud/vpn/gateway_vpn_attachment.py +2 -2
- pulumi_alicloud/vpn/ipsec_server.py +20 -12
- pulumi_alicloud/vpn/pbr_route_entry.py +152 -16
- pulumi_alicloud/vpn/route_entry.py +158 -44
- {pulumi_alicloud-3.56.0a1717175543.dist-info → pulumi_alicloud-3.57.0.dist-info}/METADATA +1 -1
- {pulumi_alicloud-3.56.0a1717175543.dist-info → pulumi_alicloud-3.57.0.dist-info}/RECORD +55 -45
- {pulumi_alicloud-3.56.0a1717175543.dist-info → pulumi_alicloud-3.57.0.dist-info}/WHEEL +0 -0
- {pulumi_alicloud-3.56.0a1717175543.dist-info → pulumi_alicloud-3.57.0.dist-info}/top_level.txt +0 -0
|
@@ -259,17 +259,85 @@ class PbrRouteEntry(pulumi.CustomResource):
|
|
|
259
259
|
config = pulumi.Config()
|
|
260
260
|
name = config.get("name")
|
|
261
261
|
if name is None:
|
|
262
|
-
name = "
|
|
262
|
+
name = "terraform-example"
|
|
263
263
|
default = alicloud.vpn.get_gateways()
|
|
264
|
-
default_customer_gateway = alicloud.vpn.CustomerGateway("
|
|
265
|
-
|
|
266
|
-
ip_address="
|
|
264
|
+
default_customer_gateway = alicloud.vpn.CustomerGateway("defaultCustomerGateway",
|
|
265
|
+
description="defaultCustomerGateway",
|
|
266
|
+
ip_address="2.2.2.5",
|
|
267
|
+
asn="2224",
|
|
268
|
+
customer_gateway_name=name)
|
|
269
|
+
change_customer_gateway = alicloud.vpn.CustomerGateway("changeCustomerGateway",
|
|
270
|
+
description="changeCustomerGateway",
|
|
271
|
+
ip_address="2.2.2.6",
|
|
272
|
+
asn="2225",
|
|
273
|
+
customer_gateway_name=name)
|
|
267
274
|
default_connection = alicloud.vpn.Connection("default",
|
|
268
|
-
name=name,
|
|
269
|
-
customer_gateway_id=default_customer_gateway.id,
|
|
270
275
|
vpn_gateway_id=default.ids[0],
|
|
271
|
-
|
|
272
|
-
|
|
276
|
+
vpn_connection_name=name,
|
|
277
|
+
local_subnets=["3.0.0.0/24"],
|
|
278
|
+
remote_subnets=[
|
|
279
|
+
"10.0.0.0/24",
|
|
280
|
+
"10.0.1.0/24",
|
|
281
|
+
],
|
|
282
|
+
tags={
|
|
283
|
+
"Created": "TF",
|
|
284
|
+
"For": "example",
|
|
285
|
+
},
|
|
286
|
+
enable_tunnels_bgp=True,
|
|
287
|
+
tunnel_options_specifications=[
|
|
288
|
+
alicloud.vpn.ConnectionTunnelOptionsSpecificationArgs(
|
|
289
|
+
tunnel_ipsec_config=alicloud.vpn.ConnectionTunnelOptionsSpecificationTunnelIpsecConfigArgs(
|
|
290
|
+
ipsec_auth_alg="md5",
|
|
291
|
+
ipsec_enc_alg="aes256",
|
|
292
|
+
ipsec_lifetime=16400,
|
|
293
|
+
ipsec_pfs="group5",
|
|
294
|
+
),
|
|
295
|
+
customer_gateway_id=default_customer_gateway.id,
|
|
296
|
+
role="master",
|
|
297
|
+
tunnel_bgp_config=alicloud.vpn.ConnectionTunnelOptionsSpecificationTunnelBgpConfigArgs(
|
|
298
|
+
local_asn="1219002",
|
|
299
|
+
tunnel_cidr="169.254.30.0/30",
|
|
300
|
+
local_bgp_ip="169.254.30.1",
|
|
301
|
+
),
|
|
302
|
+
tunnel_ike_config=alicloud.vpn.ConnectionTunnelOptionsSpecificationTunnelIkeConfigArgs(
|
|
303
|
+
ike_mode="aggressive",
|
|
304
|
+
ike_version="ikev2",
|
|
305
|
+
local_id="localid_tunnel2",
|
|
306
|
+
psk="12345678",
|
|
307
|
+
remote_id="remote2",
|
|
308
|
+
ike_auth_alg="md5",
|
|
309
|
+
ike_enc_alg="aes256",
|
|
310
|
+
ike_lifetime=3600,
|
|
311
|
+
ike_pfs="group14",
|
|
312
|
+
),
|
|
313
|
+
),
|
|
314
|
+
alicloud.vpn.ConnectionTunnelOptionsSpecificationArgs(
|
|
315
|
+
tunnel_ike_config=alicloud.vpn.ConnectionTunnelOptionsSpecificationTunnelIkeConfigArgs(
|
|
316
|
+
remote_id="remote24",
|
|
317
|
+
ike_enc_alg="aes256",
|
|
318
|
+
ike_lifetime=27000,
|
|
319
|
+
ike_mode="aggressive",
|
|
320
|
+
ike_pfs="group5",
|
|
321
|
+
ike_auth_alg="md5",
|
|
322
|
+
ike_version="ikev2",
|
|
323
|
+
local_id="localid_tunnel2",
|
|
324
|
+
psk="12345678",
|
|
325
|
+
),
|
|
326
|
+
tunnel_ipsec_config=alicloud.vpn.ConnectionTunnelOptionsSpecificationTunnelIpsecConfigArgs(
|
|
327
|
+
ipsec_lifetime=2700,
|
|
328
|
+
ipsec_pfs="group14",
|
|
329
|
+
ipsec_auth_alg="md5",
|
|
330
|
+
ipsec_enc_alg="aes256",
|
|
331
|
+
),
|
|
332
|
+
customer_gateway_id=default_customer_gateway.id,
|
|
333
|
+
role="slave",
|
|
334
|
+
tunnel_bgp_config=alicloud.vpn.ConnectionTunnelOptionsSpecificationTunnelBgpConfigArgs(
|
|
335
|
+
local_asn="1219002",
|
|
336
|
+
local_bgp_ip="169.254.40.1",
|
|
337
|
+
tunnel_cidr="169.254.40.0/30",
|
|
338
|
+
),
|
|
339
|
+
),
|
|
340
|
+
])
|
|
273
341
|
default_pbr_route_entry = alicloud.vpn.PbrRouteEntry("default",
|
|
274
342
|
vpn_gateway_id=default.ids[0],
|
|
275
343
|
route_source="192.168.1.0/24",
|
|
@@ -320,17 +388,85 @@ class PbrRouteEntry(pulumi.CustomResource):
|
|
|
320
388
|
config = pulumi.Config()
|
|
321
389
|
name = config.get("name")
|
|
322
390
|
if name is None:
|
|
323
|
-
name = "
|
|
391
|
+
name = "terraform-example"
|
|
324
392
|
default = alicloud.vpn.get_gateways()
|
|
325
|
-
default_customer_gateway = alicloud.vpn.CustomerGateway("
|
|
326
|
-
|
|
327
|
-
ip_address="
|
|
393
|
+
default_customer_gateway = alicloud.vpn.CustomerGateway("defaultCustomerGateway",
|
|
394
|
+
description="defaultCustomerGateway",
|
|
395
|
+
ip_address="2.2.2.5",
|
|
396
|
+
asn="2224",
|
|
397
|
+
customer_gateway_name=name)
|
|
398
|
+
change_customer_gateway = alicloud.vpn.CustomerGateway("changeCustomerGateway",
|
|
399
|
+
description="changeCustomerGateway",
|
|
400
|
+
ip_address="2.2.2.6",
|
|
401
|
+
asn="2225",
|
|
402
|
+
customer_gateway_name=name)
|
|
328
403
|
default_connection = alicloud.vpn.Connection("default",
|
|
329
|
-
name=name,
|
|
330
|
-
customer_gateway_id=default_customer_gateway.id,
|
|
331
404
|
vpn_gateway_id=default.ids[0],
|
|
332
|
-
|
|
333
|
-
|
|
405
|
+
vpn_connection_name=name,
|
|
406
|
+
local_subnets=["3.0.0.0/24"],
|
|
407
|
+
remote_subnets=[
|
|
408
|
+
"10.0.0.0/24",
|
|
409
|
+
"10.0.1.0/24",
|
|
410
|
+
],
|
|
411
|
+
tags={
|
|
412
|
+
"Created": "TF",
|
|
413
|
+
"For": "example",
|
|
414
|
+
},
|
|
415
|
+
enable_tunnels_bgp=True,
|
|
416
|
+
tunnel_options_specifications=[
|
|
417
|
+
alicloud.vpn.ConnectionTunnelOptionsSpecificationArgs(
|
|
418
|
+
tunnel_ipsec_config=alicloud.vpn.ConnectionTunnelOptionsSpecificationTunnelIpsecConfigArgs(
|
|
419
|
+
ipsec_auth_alg="md5",
|
|
420
|
+
ipsec_enc_alg="aes256",
|
|
421
|
+
ipsec_lifetime=16400,
|
|
422
|
+
ipsec_pfs="group5",
|
|
423
|
+
),
|
|
424
|
+
customer_gateway_id=default_customer_gateway.id,
|
|
425
|
+
role="master",
|
|
426
|
+
tunnel_bgp_config=alicloud.vpn.ConnectionTunnelOptionsSpecificationTunnelBgpConfigArgs(
|
|
427
|
+
local_asn="1219002",
|
|
428
|
+
tunnel_cidr="169.254.30.0/30",
|
|
429
|
+
local_bgp_ip="169.254.30.1",
|
|
430
|
+
),
|
|
431
|
+
tunnel_ike_config=alicloud.vpn.ConnectionTunnelOptionsSpecificationTunnelIkeConfigArgs(
|
|
432
|
+
ike_mode="aggressive",
|
|
433
|
+
ike_version="ikev2",
|
|
434
|
+
local_id="localid_tunnel2",
|
|
435
|
+
psk="12345678",
|
|
436
|
+
remote_id="remote2",
|
|
437
|
+
ike_auth_alg="md5",
|
|
438
|
+
ike_enc_alg="aes256",
|
|
439
|
+
ike_lifetime=3600,
|
|
440
|
+
ike_pfs="group14",
|
|
441
|
+
),
|
|
442
|
+
),
|
|
443
|
+
alicloud.vpn.ConnectionTunnelOptionsSpecificationArgs(
|
|
444
|
+
tunnel_ike_config=alicloud.vpn.ConnectionTunnelOptionsSpecificationTunnelIkeConfigArgs(
|
|
445
|
+
remote_id="remote24",
|
|
446
|
+
ike_enc_alg="aes256",
|
|
447
|
+
ike_lifetime=27000,
|
|
448
|
+
ike_mode="aggressive",
|
|
449
|
+
ike_pfs="group5",
|
|
450
|
+
ike_auth_alg="md5",
|
|
451
|
+
ike_version="ikev2",
|
|
452
|
+
local_id="localid_tunnel2",
|
|
453
|
+
psk="12345678",
|
|
454
|
+
),
|
|
455
|
+
tunnel_ipsec_config=alicloud.vpn.ConnectionTunnelOptionsSpecificationTunnelIpsecConfigArgs(
|
|
456
|
+
ipsec_lifetime=2700,
|
|
457
|
+
ipsec_pfs="group14",
|
|
458
|
+
ipsec_auth_alg="md5",
|
|
459
|
+
ipsec_enc_alg="aes256",
|
|
460
|
+
),
|
|
461
|
+
customer_gateway_id=default_customer_gateway.id,
|
|
462
|
+
role="slave",
|
|
463
|
+
tunnel_bgp_config=alicloud.vpn.ConnectionTunnelOptionsSpecificationTunnelBgpConfigArgs(
|
|
464
|
+
local_asn="1219002",
|
|
465
|
+
local_bgp_ip="169.254.40.1",
|
|
466
|
+
tunnel_cidr="169.254.40.0/30",
|
|
467
|
+
),
|
|
468
|
+
),
|
|
469
|
+
])
|
|
334
470
|
default_pbr_route_entry = alicloud.vpn.PbrRouteEntry("default",
|
|
335
471
|
vpn_gateway_id=default.ids[0],
|
|
336
472
|
route_source="192.168.1.0/24",
|
|
@@ -237,30 +237,87 @@ class RouteEntry(pulumi.CustomResource):
|
|
|
237
237
|
config = pulumi.Config()
|
|
238
238
|
name = config.get("name")
|
|
239
239
|
if name is None:
|
|
240
|
-
name = "
|
|
241
|
-
default = alicloud.
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
vswitch_id=default_get_switches.ids[0])
|
|
253
|
-
default_customer_gateway = alicloud.vpn.CustomerGateway("default",
|
|
254
|
-
name=name,
|
|
255
|
-
ip_address="192.168.1.1")
|
|
240
|
+
name = "terraform-example"
|
|
241
|
+
default = alicloud.vpn.get_gateways()
|
|
242
|
+
default_customer_gateway = alicloud.vpn.CustomerGateway("defaultCustomerGateway",
|
|
243
|
+
description="defaultCustomerGateway",
|
|
244
|
+
ip_address="2.2.2.5",
|
|
245
|
+
asn="2224",
|
|
246
|
+
customer_gateway_name=name)
|
|
247
|
+
change_customer_gateway = alicloud.vpn.CustomerGateway("changeCustomerGateway",
|
|
248
|
+
description="changeCustomerGateway",
|
|
249
|
+
ip_address="2.2.2.6",
|
|
250
|
+
asn="2225",
|
|
251
|
+
customer_gateway_name=name)
|
|
256
252
|
default_connection = alicloud.vpn.Connection("default",
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
253
|
+
vpn_gateway_id=default.ids[0],
|
|
254
|
+
vpn_connection_name=name,
|
|
255
|
+
local_subnets=["3.0.0.0/24"],
|
|
256
|
+
remote_subnets=[
|
|
257
|
+
"10.0.0.0/24",
|
|
258
|
+
"10.0.1.0/24",
|
|
259
|
+
],
|
|
260
|
+
tags={
|
|
261
|
+
"Created": "TF",
|
|
262
|
+
"For": "example",
|
|
263
|
+
},
|
|
264
|
+
enable_tunnels_bgp=True,
|
|
265
|
+
tunnel_options_specifications=[
|
|
266
|
+
alicloud.vpn.ConnectionTunnelOptionsSpecificationArgs(
|
|
267
|
+
tunnel_ipsec_config=alicloud.vpn.ConnectionTunnelOptionsSpecificationTunnelIpsecConfigArgs(
|
|
268
|
+
ipsec_auth_alg="md5",
|
|
269
|
+
ipsec_enc_alg="aes256",
|
|
270
|
+
ipsec_lifetime=16400,
|
|
271
|
+
ipsec_pfs="group5",
|
|
272
|
+
),
|
|
273
|
+
customer_gateway_id=default_customer_gateway.id,
|
|
274
|
+
role="master",
|
|
275
|
+
tunnel_bgp_config=alicloud.vpn.ConnectionTunnelOptionsSpecificationTunnelBgpConfigArgs(
|
|
276
|
+
local_asn="1219002",
|
|
277
|
+
tunnel_cidr="169.254.30.0/30",
|
|
278
|
+
local_bgp_ip="169.254.30.1",
|
|
279
|
+
),
|
|
280
|
+
tunnel_ike_config=alicloud.vpn.ConnectionTunnelOptionsSpecificationTunnelIkeConfigArgs(
|
|
281
|
+
ike_mode="aggressive",
|
|
282
|
+
ike_version="ikev2",
|
|
283
|
+
local_id="localid_tunnel2",
|
|
284
|
+
psk="12345678",
|
|
285
|
+
remote_id="remote2",
|
|
286
|
+
ike_auth_alg="md5",
|
|
287
|
+
ike_enc_alg="aes256",
|
|
288
|
+
ike_lifetime=3600,
|
|
289
|
+
ike_pfs="group14",
|
|
290
|
+
),
|
|
291
|
+
),
|
|
292
|
+
alicloud.vpn.ConnectionTunnelOptionsSpecificationArgs(
|
|
293
|
+
tunnel_ike_config=alicloud.vpn.ConnectionTunnelOptionsSpecificationTunnelIkeConfigArgs(
|
|
294
|
+
remote_id="remote24",
|
|
295
|
+
ike_enc_alg="aes256",
|
|
296
|
+
ike_lifetime=27000,
|
|
297
|
+
ike_mode="aggressive",
|
|
298
|
+
ike_pfs="group5",
|
|
299
|
+
ike_auth_alg="md5",
|
|
300
|
+
ike_version="ikev2",
|
|
301
|
+
local_id="localid_tunnel2",
|
|
302
|
+
psk="12345678",
|
|
303
|
+
),
|
|
304
|
+
tunnel_ipsec_config=alicloud.vpn.ConnectionTunnelOptionsSpecificationTunnelIpsecConfigArgs(
|
|
305
|
+
ipsec_lifetime=2700,
|
|
306
|
+
ipsec_pfs="group14",
|
|
307
|
+
ipsec_auth_alg="md5",
|
|
308
|
+
ipsec_enc_alg="aes256",
|
|
309
|
+
),
|
|
310
|
+
customer_gateway_id=default_customer_gateway.id,
|
|
311
|
+
role="slave",
|
|
312
|
+
tunnel_bgp_config=alicloud.vpn.ConnectionTunnelOptionsSpecificationTunnelBgpConfigArgs(
|
|
313
|
+
local_asn="1219002",
|
|
314
|
+
local_bgp_ip="169.254.40.1",
|
|
315
|
+
tunnel_cidr="169.254.40.0/30",
|
|
316
|
+
),
|
|
317
|
+
),
|
|
318
|
+
])
|
|
262
319
|
default_route_entry = alicloud.vpn.RouteEntry("default",
|
|
263
|
-
vpn_gateway_id=
|
|
320
|
+
vpn_gateway_id=default.ids[0],
|
|
264
321
|
route_dest="10.0.0.0/24",
|
|
265
322
|
next_hop=default_connection.id,
|
|
266
323
|
weight=0,
|
|
@@ -301,30 +358,87 @@ class RouteEntry(pulumi.CustomResource):
|
|
|
301
358
|
config = pulumi.Config()
|
|
302
359
|
name = config.get("name")
|
|
303
360
|
if name is None:
|
|
304
|
-
name = "
|
|
305
|
-
default = alicloud.
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
vswitch_id=default_get_switches.ids[0])
|
|
317
|
-
default_customer_gateway = alicloud.vpn.CustomerGateway("default",
|
|
318
|
-
name=name,
|
|
319
|
-
ip_address="192.168.1.1")
|
|
361
|
+
name = "terraform-example"
|
|
362
|
+
default = alicloud.vpn.get_gateways()
|
|
363
|
+
default_customer_gateway = alicloud.vpn.CustomerGateway("defaultCustomerGateway",
|
|
364
|
+
description="defaultCustomerGateway",
|
|
365
|
+
ip_address="2.2.2.5",
|
|
366
|
+
asn="2224",
|
|
367
|
+
customer_gateway_name=name)
|
|
368
|
+
change_customer_gateway = alicloud.vpn.CustomerGateway("changeCustomerGateway",
|
|
369
|
+
description="changeCustomerGateway",
|
|
370
|
+
ip_address="2.2.2.6",
|
|
371
|
+
asn="2225",
|
|
372
|
+
customer_gateway_name=name)
|
|
320
373
|
default_connection = alicloud.vpn.Connection("default",
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
374
|
+
vpn_gateway_id=default.ids[0],
|
|
375
|
+
vpn_connection_name=name,
|
|
376
|
+
local_subnets=["3.0.0.0/24"],
|
|
377
|
+
remote_subnets=[
|
|
378
|
+
"10.0.0.0/24",
|
|
379
|
+
"10.0.1.0/24",
|
|
380
|
+
],
|
|
381
|
+
tags={
|
|
382
|
+
"Created": "TF",
|
|
383
|
+
"For": "example",
|
|
384
|
+
},
|
|
385
|
+
enable_tunnels_bgp=True,
|
|
386
|
+
tunnel_options_specifications=[
|
|
387
|
+
alicloud.vpn.ConnectionTunnelOptionsSpecificationArgs(
|
|
388
|
+
tunnel_ipsec_config=alicloud.vpn.ConnectionTunnelOptionsSpecificationTunnelIpsecConfigArgs(
|
|
389
|
+
ipsec_auth_alg="md5",
|
|
390
|
+
ipsec_enc_alg="aes256",
|
|
391
|
+
ipsec_lifetime=16400,
|
|
392
|
+
ipsec_pfs="group5",
|
|
393
|
+
),
|
|
394
|
+
customer_gateway_id=default_customer_gateway.id,
|
|
395
|
+
role="master",
|
|
396
|
+
tunnel_bgp_config=alicloud.vpn.ConnectionTunnelOptionsSpecificationTunnelBgpConfigArgs(
|
|
397
|
+
local_asn="1219002",
|
|
398
|
+
tunnel_cidr="169.254.30.0/30",
|
|
399
|
+
local_bgp_ip="169.254.30.1",
|
|
400
|
+
),
|
|
401
|
+
tunnel_ike_config=alicloud.vpn.ConnectionTunnelOptionsSpecificationTunnelIkeConfigArgs(
|
|
402
|
+
ike_mode="aggressive",
|
|
403
|
+
ike_version="ikev2",
|
|
404
|
+
local_id="localid_tunnel2",
|
|
405
|
+
psk="12345678",
|
|
406
|
+
remote_id="remote2",
|
|
407
|
+
ike_auth_alg="md5",
|
|
408
|
+
ike_enc_alg="aes256",
|
|
409
|
+
ike_lifetime=3600,
|
|
410
|
+
ike_pfs="group14",
|
|
411
|
+
),
|
|
412
|
+
),
|
|
413
|
+
alicloud.vpn.ConnectionTunnelOptionsSpecificationArgs(
|
|
414
|
+
tunnel_ike_config=alicloud.vpn.ConnectionTunnelOptionsSpecificationTunnelIkeConfigArgs(
|
|
415
|
+
remote_id="remote24",
|
|
416
|
+
ike_enc_alg="aes256",
|
|
417
|
+
ike_lifetime=27000,
|
|
418
|
+
ike_mode="aggressive",
|
|
419
|
+
ike_pfs="group5",
|
|
420
|
+
ike_auth_alg="md5",
|
|
421
|
+
ike_version="ikev2",
|
|
422
|
+
local_id="localid_tunnel2",
|
|
423
|
+
psk="12345678",
|
|
424
|
+
),
|
|
425
|
+
tunnel_ipsec_config=alicloud.vpn.ConnectionTunnelOptionsSpecificationTunnelIpsecConfigArgs(
|
|
426
|
+
ipsec_lifetime=2700,
|
|
427
|
+
ipsec_pfs="group14",
|
|
428
|
+
ipsec_auth_alg="md5",
|
|
429
|
+
ipsec_enc_alg="aes256",
|
|
430
|
+
),
|
|
431
|
+
customer_gateway_id=default_customer_gateway.id,
|
|
432
|
+
role="slave",
|
|
433
|
+
tunnel_bgp_config=alicloud.vpn.ConnectionTunnelOptionsSpecificationTunnelBgpConfigArgs(
|
|
434
|
+
local_asn="1219002",
|
|
435
|
+
local_bgp_ip="169.254.40.1",
|
|
436
|
+
tunnel_cidr="169.254.40.0/30",
|
|
437
|
+
),
|
|
438
|
+
),
|
|
439
|
+
])
|
|
326
440
|
default_route_entry = alicloud.vpn.RouteEntry("default",
|
|
327
|
-
vpn_gateway_id=
|
|
441
|
+
vpn_gateway_id=default.ids[0],
|
|
328
442
|
route_dest="10.0.0.0/24",
|
|
329
443
|
next_hop=default_connection.id,
|
|
330
444
|
weight=0,
|