pulumi-alicloud 3.66.0a1731388773__py3-none-any.whl → 3.66.0a1731648019__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.
Potentially problematic release.
This version of pulumi-alicloud might be problematic. Click here for more details.
- pulumi_alicloud/alb/load_balancer.py +1 -1
- pulumi_alicloud/arms/environment.py +7 -7
- pulumi_alicloud/arms/get_remote_writes.py +4 -4
- pulumi_alicloud/arms/prometheus_alert_rule.py +58 -0
- pulumi_alicloud/arms/remote_write.py +2 -2
- pulumi_alicloud/cen/transit_router_vbr_attachment.py +96 -74
- pulumi_alicloud/cms/hybrid_monitor_fc_task.py +28 -26
- pulumi_alicloud/cr/chain.py +22 -14
- pulumi_alicloud/cr/chart_repository.py +14 -6
- pulumi_alicloud/cr/repo.py +8 -8
- pulumi_alicloud/cr/vpc_endpoint_linked_vpc.py +14 -6
- pulumi_alicloud/databasefilesystem/instance_attachment.py +59 -63
- pulumi_alicloud/databasefilesystem/snapshot.py +53 -109
- pulumi_alicloud/ecs/instance.py +7 -7
- pulumi_alicloud/ess/scaling_configuration.py +7 -7
- pulumi_alicloud/fc/trigger.py +202 -138
- pulumi_alicloud/ga/custom_routing_endpoint_traffic_policy.py +48 -44
- pulumi_alicloud/governance/_inputs.py +54 -0
- pulumi_alicloud/governance/account.py +49 -14
- pulumi_alicloud/governance/outputs.py +51 -0
- pulumi_alicloud/gpdb/instance.py +196 -15
- pulumi_alicloud/kms/instance.py +28 -0
- pulumi_alicloud/nas/data_flow.py +6 -6
- pulumi_alicloud/nas/fileset.py +6 -6
- pulumi_alicloud/nas/lifecycle_policy.py +6 -6
- pulumi_alicloud/nas/recycle_bin.py +6 -6
- pulumi_alicloud/nas/snapshot.py +6 -6
- pulumi_alicloud/pulumi-plugin.json +1 -1
- pulumi_alicloud/redis/tair_instance.py +1102 -71
- pulumi_alicloud/threatdetection/honeypot_preset.py +2 -0
- pulumi_alicloud/vpn/gateway_vco_route.py +28 -8
- {pulumi_alicloud-3.66.0a1731388773.dist-info → pulumi_alicloud-3.66.0a1731648019.dist-info}/METADATA +1 -1
- {pulumi_alicloud-3.66.0a1731388773.dist-info → pulumi_alicloud-3.66.0a1731648019.dist-info}/RECORD +35 -35
- {pulumi_alicloud-3.66.0a1731388773.dist-info → pulumi_alicloud-3.66.0a1731648019.dist-info}/WHEEL +1 -1
- {pulumi_alicloud-3.66.0a1731388773.dist-info → pulumi_alicloud-3.66.0a1731648019.dist-info}/top_level.txt +0 -0
pulumi_alicloud/cr/chain.py
CHANGED
|
@@ -266,27 +266,31 @@ class Chain(pulumi.CustomResource):
|
|
|
266
266
|
```python
|
|
267
267
|
import pulumi
|
|
268
268
|
import pulumi_alicloud as alicloud
|
|
269
|
+
import pulumi_random as random
|
|
269
270
|
|
|
270
271
|
config = pulumi.Config()
|
|
271
272
|
name = config.get("name")
|
|
272
273
|
if name is None:
|
|
273
274
|
name = "tf-example"
|
|
274
|
-
default =
|
|
275
|
+
default = random.index.Integer("default",
|
|
276
|
+
min=100000,
|
|
277
|
+
max=999999)
|
|
278
|
+
default_registry_enterprise_instance = alicloud.cr.RegistryEnterpriseInstance("default",
|
|
275
279
|
payment_type="Subscription",
|
|
276
280
|
period=1,
|
|
277
281
|
renew_period=0,
|
|
278
282
|
renewal_status="ManualRenewal",
|
|
279
283
|
instance_type="Advanced",
|
|
280
|
-
instance_name=name)
|
|
284
|
+
instance_name=f"{name}-{default['result']}")
|
|
281
285
|
default_registry_enterprise_namespace = alicloud.cs.RegistryEnterpriseNamespace("default",
|
|
282
|
-
instance_id=
|
|
283
|
-
name=name,
|
|
286
|
+
instance_id=default_registry_enterprise_instance.id,
|
|
287
|
+
name=f"{name}-{default['result']}",
|
|
284
288
|
auto_create=False,
|
|
285
289
|
default_visibility="PUBLIC")
|
|
286
290
|
default_registry_enterprise_repo = alicloud.cs.RegistryEnterpriseRepo("default",
|
|
287
|
-
instance_id=
|
|
291
|
+
instance_id=default_registry_enterprise_instance.id,
|
|
288
292
|
namespace=default_registry_enterprise_namespace.name,
|
|
289
|
-
name=name,
|
|
293
|
+
name=f"{name}-{default['result']}",
|
|
290
294
|
summary="this is summary of my new repo",
|
|
291
295
|
repo_type="PUBLIC",
|
|
292
296
|
detail="this is a public repo")
|
|
@@ -399,7 +403,7 @@ class Chain(pulumi.CustomResource):
|
|
|
399
403
|
},
|
|
400
404
|
],
|
|
401
405
|
}],
|
|
402
|
-
chain_name=name,
|
|
406
|
+
chain_name=f"{name}-{default['result']}",
|
|
403
407
|
description=name,
|
|
404
408
|
instance_id=default_registry_enterprise_namespace.instance_id,
|
|
405
409
|
repo_name=default_registry_enterprise_repo.name,
|
|
@@ -443,27 +447,31 @@ class Chain(pulumi.CustomResource):
|
|
|
443
447
|
```python
|
|
444
448
|
import pulumi
|
|
445
449
|
import pulumi_alicloud as alicloud
|
|
450
|
+
import pulumi_random as random
|
|
446
451
|
|
|
447
452
|
config = pulumi.Config()
|
|
448
453
|
name = config.get("name")
|
|
449
454
|
if name is None:
|
|
450
455
|
name = "tf-example"
|
|
451
|
-
default =
|
|
456
|
+
default = random.index.Integer("default",
|
|
457
|
+
min=100000,
|
|
458
|
+
max=999999)
|
|
459
|
+
default_registry_enterprise_instance = alicloud.cr.RegistryEnterpriseInstance("default",
|
|
452
460
|
payment_type="Subscription",
|
|
453
461
|
period=1,
|
|
454
462
|
renew_period=0,
|
|
455
463
|
renewal_status="ManualRenewal",
|
|
456
464
|
instance_type="Advanced",
|
|
457
|
-
instance_name=name)
|
|
465
|
+
instance_name=f"{name}-{default['result']}")
|
|
458
466
|
default_registry_enterprise_namespace = alicloud.cs.RegistryEnterpriseNamespace("default",
|
|
459
|
-
instance_id=
|
|
460
|
-
name=name,
|
|
467
|
+
instance_id=default_registry_enterprise_instance.id,
|
|
468
|
+
name=f"{name}-{default['result']}",
|
|
461
469
|
auto_create=False,
|
|
462
470
|
default_visibility="PUBLIC")
|
|
463
471
|
default_registry_enterprise_repo = alicloud.cs.RegistryEnterpriseRepo("default",
|
|
464
|
-
instance_id=
|
|
472
|
+
instance_id=default_registry_enterprise_instance.id,
|
|
465
473
|
namespace=default_registry_enterprise_namespace.name,
|
|
466
|
-
name=name,
|
|
474
|
+
name=f"{name}-{default['result']}",
|
|
467
475
|
summary="this is summary of my new repo",
|
|
468
476
|
repo_type="PUBLIC",
|
|
469
477
|
detail="this is a public repo")
|
|
@@ -576,7 +584,7 @@ class Chain(pulumi.CustomResource):
|
|
|
576
584
|
},
|
|
577
585
|
],
|
|
578
586
|
}],
|
|
579
|
-
chain_name=name,
|
|
587
|
+
chain_name=f"{name}-{default['result']}",
|
|
580
588
|
description=name,
|
|
581
589
|
instance_id=default_registry_enterprise_namespace.instance_id,
|
|
582
590
|
repo_name=default_registry_enterprise_repo.name,
|
|
@@ -214,25 +214,29 @@ class ChartRepository(pulumi.CustomResource):
|
|
|
214
214
|
```python
|
|
215
215
|
import pulumi
|
|
216
216
|
import pulumi_alicloud as alicloud
|
|
217
|
+
import pulumi_random as random
|
|
217
218
|
|
|
218
219
|
config = pulumi.Config()
|
|
219
220
|
name = config.get("name")
|
|
220
221
|
if name is None:
|
|
221
222
|
name = "tf-example"
|
|
223
|
+
default = random.index.Integer("default",
|
|
224
|
+
min=100000,
|
|
225
|
+
max=999999)
|
|
222
226
|
example = alicloud.cr.RegistryEnterpriseInstance("example",
|
|
223
227
|
payment_type="Subscription",
|
|
224
228
|
period=1,
|
|
225
229
|
renew_period=0,
|
|
226
230
|
renewal_status="ManualRenewal",
|
|
227
231
|
instance_type="Advanced",
|
|
228
|
-
instance_name=name)
|
|
232
|
+
instance_name=f"{name}-{default['result']}")
|
|
229
233
|
example_chart_namespace = alicloud.cr.ChartNamespace("example",
|
|
230
234
|
instance_id=example.id,
|
|
231
|
-
namespace_name=name)
|
|
235
|
+
namespace_name=f"{name}-{default['result']}")
|
|
232
236
|
example_chart_repository = alicloud.cr.ChartRepository("example",
|
|
233
237
|
repo_namespace_name=example_chart_namespace.namespace_name,
|
|
234
238
|
instance_id=example_chart_namespace.instance_id,
|
|
235
|
-
repo_name=name)
|
|
239
|
+
repo_name=f"{name}-{default['result']}")
|
|
236
240
|
```
|
|
237
241
|
|
|
238
242
|
## Import
|
|
@@ -271,25 +275,29 @@ class ChartRepository(pulumi.CustomResource):
|
|
|
271
275
|
```python
|
|
272
276
|
import pulumi
|
|
273
277
|
import pulumi_alicloud as alicloud
|
|
278
|
+
import pulumi_random as random
|
|
274
279
|
|
|
275
280
|
config = pulumi.Config()
|
|
276
281
|
name = config.get("name")
|
|
277
282
|
if name is None:
|
|
278
283
|
name = "tf-example"
|
|
284
|
+
default = random.index.Integer("default",
|
|
285
|
+
min=100000,
|
|
286
|
+
max=999999)
|
|
279
287
|
example = alicloud.cr.RegistryEnterpriseInstance("example",
|
|
280
288
|
payment_type="Subscription",
|
|
281
289
|
period=1,
|
|
282
290
|
renew_period=0,
|
|
283
291
|
renewal_status="ManualRenewal",
|
|
284
292
|
instance_type="Advanced",
|
|
285
|
-
instance_name=name)
|
|
293
|
+
instance_name=f"{name}-{default['result']}")
|
|
286
294
|
example_chart_namespace = alicloud.cr.ChartNamespace("example",
|
|
287
295
|
instance_id=example.id,
|
|
288
|
-
namespace_name=name)
|
|
296
|
+
namespace_name=f"{name}-{default['result']}")
|
|
289
297
|
example_chart_repository = alicloud.cr.ChartRepository("example",
|
|
290
298
|
repo_namespace_name=example_chart_namespace.namespace_name,
|
|
291
299
|
instance_id=example_chart_namespace.instance_id,
|
|
292
|
-
repo_name=name)
|
|
300
|
+
repo_name=f"{name}-{default['result']}")
|
|
293
301
|
```
|
|
294
302
|
|
|
295
303
|
## Import
|
pulumi_alicloud/cr/repo.py
CHANGED
|
@@ -115,7 +115,7 @@ class _RepoState:
|
|
|
115
115
|
"""
|
|
116
116
|
Input properties used for looking up and filtering Repo resources.
|
|
117
117
|
:param pulumi.Input[str] detail: The repository specific information. MarkDown format is supported, and the length limit is 2000.
|
|
118
|
-
:param pulumi.Input['RepoDomainListArgs'] domain_list: The repository domain list.
|
|
118
|
+
:param pulumi.Input['RepoDomainListArgs'] domain_list: (Optional) The repository domain list.
|
|
119
119
|
:param pulumi.Input[str] name: Name of container registry repository.
|
|
120
120
|
:param pulumi.Input[str] namespace: Name of container registry namespace where repository is located.
|
|
121
121
|
:param pulumi.Input[str] repo_type: `PUBLIC` or `PRIVATE`, repo's visibility.
|
|
@@ -150,7 +150,7 @@ class _RepoState:
|
|
|
150
150
|
@pulumi.getter(name="domainList")
|
|
151
151
|
def domain_list(self) -> Optional[pulumi.Input['RepoDomainListArgs']]:
|
|
152
152
|
"""
|
|
153
|
-
The repository domain list.
|
|
153
|
+
(Optional) The repository domain list.
|
|
154
154
|
"""
|
|
155
155
|
return pulumi.get(self, "domain_list")
|
|
156
156
|
|
|
@@ -245,8 +245,8 @@ class Repo(pulumi.CustomResource):
|
|
|
245
245
|
namespace=example.name,
|
|
246
246
|
name=name,
|
|
247
247
|
summary="this is summary of my new repo",
|
|
248
|
-
repo_type="
|
|
249
|
-
detail="this is a
|
|
248
|
+
repo_type="PRIVATE",
|
|
249
|
+
detail="this is a private repo")
|
|
250
250
|
```
|
|
251
251
|
|
|
252
252
|
## Import
|
|
@@ -298,8 +298,8 @@ class Repo(pulumi.CustomResource):
|
|
|
298
298
|
namespace=example.name,
|
|
299
299
|
name=name,
|
|
300
300
|
summary="this is summary of my new repo",
|
|
301
|
-
repo_type="
|
|
302
|
-
detail="this is a
|
|
301
|
+
repo_type="PRIVATE",
|
|
302
|
+
detail="this is a private repo")
|
|
303
303
|
```
|
|
304
304
|
|
|
305
305
|
## Import
|
|
@@ -375,7 +375,7 @@ class Repo(pulumi.CustomResource):
|
|
|
375
375
|
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
|
376
376
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
377
377
|
:param pulumi.Input[str] detail: The repository specific information. MarkDown format is supported, and the length limit is 2000.
|
|
378
|
-
:param pulumi.Input[Union['RepoDomainListArgs', 'RepoDomainListArgsDict']] domain_list: The repository domain list.
|
|
378
|
+
:param pulumi.Input[Union['RepoDomainListArgs', 'RepoDomainListArgsDict']] domain_list: (Optional) The repository domain list.
|
|
379
379
|
:param pulumi.Input[str] name: Name of container registry repository.
|
|
380
380
|
:param pulumi.Input[str] namespace: Name of container registry namespace where repository is located.
|
|
381
381
|
:param pulumi.Input[str] repo_type: `PUBLIC` or `PRIVATE`, repo's visibility.
|
|
@@ -405,7 +405,7 @@ class Repo(pulumi.CustomResource):
|
|
|
405
405
|
@pulumi.getter(name="domainList")
|
|
406
406
|
def domain_list(self) -> pulumi.Output['outputs.RepoDomainList']:
|
|
407
407
|
"""
|
|
408
|
-
The repository domain list.
|
|
408
|
+
(Optional) The repository domain list.
|
|
409
409
|
"""
|
|
410
410
|
return pulumi.get(self, "domain_list")
|
|
411
411
|
|
|
@@ -237,17 +237,21 @@ class VpcEndpointLinkedVpc(pulumi.CustomResource):
|
|
|
237
237
|
```python
|
|
238
238
|
import pulumi
|
|
239
239
|
import pulumi_alicloud as alicloud
|
|
240
|
+
import pulumi_random as random
|
|
240
241
|
|
|
241
242
|
config = pulumi.Config()
|
|
242
243
|
name = config.get("name")
|
|
243
244
|
if name is None:
|
|
244
245
|
name = "tf-example"
|
|
246
|
+
default_integer = random.index.Integer("default",
|
|
247
|
+
min=100000,
|
|
248
|
+
max=999999)
|
|
245
249
|
default = alicloud.get_zones(available_resource_creation="VSwitch")
|
|
246
250
|
default_network = alicloud.vpc.Network("default",
|
|
247
|
-
vpc_name=name,
|
|
251
|
+
vpc_name=f"{name}-{default_integer['result']}",
|
|
248
252
|
cidr_block="10.4.0.0/16")
|
|
249
253
|
default_switch = alicloud.vpc.Switch("default",
|
|
250
|
-
vswitch_name=name,
|
|
254
|
+
vswitch_name=f"{name}-{default_integer['result']}",
|
|
251
255
|
cidr_block="10.4.0.0/24",
|
|
252
256
|
vpc_id=default_network.id,
|
|
253
257
|
zone_id=default.zones[0].id)
|
|
@@ -257,7 +261,7 @@ class VpcEndpointLinkedVpc(pulumi.CustomResource):
|
|
|
257
261
|
renew_period=0,
|
|
258
262
|
renewal_status="ManualRenewal",
|
|
259
263
|
instance_type="Advanced",
|
|
260
|
-
instance_name=name)
|
|
264
|
+
instance_name=f"{name}-{default_integer['result']}")
|
|
261
265
|
default_vpc_endpoint_linked_vpc = alicloud.cr.VpcEndpointLinkedVpc("default",
|
|
262
266
|
instance_id=default_registry_enterprise_instance.id,
|
|
263
267
|
vpc_id=default_network.id,
|
|
@@ -304,17 +308,21 @@ class VpcEndpointLinkedVpc(pulumi.CustomResource):
|
|
|
304
308
|
```python
|
|
305
309
|
import pulumi
|
|
306
310
|
import pulumi_alicloud as alicloud
|
|
311
|
+
import pulumi_random as random
|
|
307
312
|
|
|
308
313
|
config = pulumi.Config()
|
|
309
314
|
name = config.get("name")
|
|
310
315
|
if name is None:
|
|
311
316
|
name = "tf-example"
|
|
317
|
+
default_integer = random.index.Integer("default",
|
|
318
|
+
min=100000,
|
|
319
|
+
max=999999)
|
|
312
320
|
default = alicloud.get_zones(available_resource_creation="VSwitch")
|
|
313
321
|
default_network = alicloud.vpc.Network("default",
|
|
314
|
-
vpc_name=name,
|
|
322
|
+
vpc_name=f"{name}-{default_integer['result']}",
|
|
315
323
|
cidr_block="10.4.0.0/16")
|
|
316
324
|
default_switch = alicloud.vpc.Switch("default",
|
|
317
|
-
vswitch_name=name,
|
|
325
|
+
vswitch_name=f"{name}-{default_integer['result']}",
|
|
318
326
|
cidr_block="10.4.0.0/24",
|
|
319
327
|
vpc_id=default_network.id,
|
|
320
328
|
zone_id=default.zones[0].id)
|
|
@@ -324,7 +332,7 @@ class VpcEndpointLinkedVpc(pulumi.CustomResource):
|
|
|
324
332
|
renew_period=0,
|
|
325
333
|
renewal_status="ManualRenewal",
|
|
326
334
|
instance_type="Advanced",
|
|
327
|
-
instance_name=name)
|
|
335
|
+
instance_name=f"{name}-{default_integer['result']}")
|
|
328
336
|
default_vpc_endpoint_linked_vpc = alicloud.cr.VpcEndpointLinkedVpc("default",
|
|
329
337
|
instance_id=default_registry_enterprise_instance.id,
|
|
330
338
|
vpc_id=default_network.id,
|
|
@@ -24,7 +24,7 @@ class InstanceAttachmentArgs:
|
|
|
24
24
|
"""
|
|
25
25
|
The set of arguments for constructing a InstanceAttachment resource.
|
|
26
26
|
:param pulumi.Input[str] ecs_id: The ID of the ECS instance.
|
|
27
|
-
:param pulumi.Input[str] instance_id: The ID of the
|
|
27
|
+
:param pulumi.Input[str] instance_id: The ID of the Database File System.
|
|
28
28
|
"""
|
|
29
29
|
pulumi.set(__self__, "ecs_id", ecs_id)
|
|
30
30
|
pulumi.set(__self__, "instance_id", instance_id)
|
|
@@ -45,7 +45,7 @@ class InstanceAttachmentArgs:
|
|
|
45
45
|
@pulumi.getter(name="instanceId")
|
|
46
46
|
def instance_id(self) -> pulumi.Input[str]:
|
|
47
47
|
"""
|
|
48
|
-
The ID of the
|
|
48
|
+
The ID of the Database File System.
|
|
49
49
|
"""
|
|
50
50
|
return pulumi.get(self, "instance_id")
|
|
51
51
|
|
|
@@ -63,8 +63,8 @@ class _InstanceAttachmentState:
|
|
|
63
63
|
"""
|
|
64
64
|
Input properties used for looking up and filtering InstanceAttachment resources.
|
|
65
65
|
:param pulumi.Input[str] ecs_id: The ID of the ECS instance.
|
|
66
|
-
:param pulumi.Input[str] instance_id: The ID of the
|
|
67
|
-
:param pulumi.Input[str] status: The status of
|
|
66
|
+
:param pulumi.Input[str] instance_id: The ID of the Database File System.
|
|
67
|
+
:param pulumi.Input[str] status: The status of Instance Attachment.
|
|
68
68
|
"""
|
|
69
69
|
if ecs_id is not None:
|
|
70
70
|
pulumi.set(__self__, "ecs_id", ecs_id)
|
|
@@ -89,7 +89,7 @@ class _InstanceAttachmentState:
|
|
|
89
89
|
@pulumi.getter(name="instanceId")
|
|
90
90
|
def instance_id(self) -> Optional[pulumi.Input[str]]:
|
|
91
91
|
"""
|
|
92
|
-
The ID of the
|
|
92
|
+
The ID of the Database File System.
|
|
93
93
|
"""
|
|
94
94
|
return pulumi.get(self, "instance_id")
|
|
95
95
|
|
|
@@ -101,7 +101,7 @@ class _InstanceAttachmentState:
|
|
|
101
101
|
@pulumi.getter
|
|
102
102
|
def status(self) -> Optional[pulumi.Input[str]]:
|
|
103
103
|
"""
|
|
104
|
-
The status of
|
|
104
|
+
The status of Instance Attachment.
|
|
105
105
|
"""
|
|
106
106
|
return pulumi.get(self, "status")
|
|
107
107
|
|
|
@@ -119,9 +119,9 @@ class InstanceAttachment(pulumi.CustomResource):
|
|
|
119
119
|
instance_id: Optional[pulumi.Input[str]] = None,
|
|
120
120
|
__props__=None):
|
|
121
121
|
"""
|
|
122
|
-
Provides a DBFS Instance Attachment resource.
|
|
122
|
+
Provides a Database File System (DBFS) Instance Attachment resource.
|
|
123
123
|
|
|
124
|
-
For information about DBFS Instance Attachment and how to use it.
|
|
124
|
+
For information about Database File System (DBFS) Instance Attachment and how to use it, see [What is Snapshot](https://help.aliyun.com/zh/dbfs/developer-reference/api-dbfs-2020-04-18-attachdbfs).
|
|
125
125
|
|
|
126
126
|
> **NOTE:** Available since v1.156.0.
|
|
127
127
|
|
|
@@ -136,41 +136,39 @@ class InstanceAttachment(pulumi.CustomResource):
|
|
|
136
136
|
config = pulumi.Config()
|
|
137
137
|
name = config.get("name")
|
|
138
138
|
if name is None:
|
|
139
|
-
name = "
|
|
139
|
+
name = "terraform-example"
|
|
140
140
|
zone_id = "cn-hangzhou-i"
|
|
141
|
-
|
|
141
|
+
default = alicloud.databasefilesystem.get_instances()
|
|
142
|
+
default_get_instance_types = alicloud.ecs.get_instance_types(availability_zone=zone_id,
|
|
142
143
|
instance_type_family="ecs.g7se")
|
|
143
|
-
|
|
144
|
-
name_regex="^
|
|
144
|
+
default_get_images = alicloud.ecs.get_images(instance_type=default_get_instance_types.instance_types[0].id,
|
|
145
|
+
name_regex="^aliyun_2_19",
|
|
145
146
|
owners="system")
|
|
146
|
-
|
|
147
|
-
default_get_switches = alicloud.vpc.get_switches(vpc_id=
|
|
147
|
+
default_get_networks = alicloud.vpc.get_networks(name_regex="^default-NODELETING$")
|
|
148
|
+
default_get_switches = alicloud.vpc.get_switches(vpc_id=default_get_networks.ids[0],
|
|
148
149
|
zone_id=zone_id)
|
|
149
|
-
|
|
150
|
+
default_security_group = alicloud.ecs.SecurityGroup("default",
|
|
150
151
|
name=name,
|
|
151
|
-
vpc_id=
|
|
152
|
+
vpc_id=default_get_networks.ids[0])
|
|
152
153
|
default_instance = alicloud.ecs.Instance("default",
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
154
|
+
image_id=default_get_images.images[0].id,
|
|
155
|
+
instance_type=default_get_instance_types.instance_types[0].id,
|
|
156
|
+
security_groups=[__item.id for __item in [default_security_group]],
|
|
157
|
+
internet_charge_type="PayByTraffic",
|
|
158
|
+
internet_max_bandwidth_out=10,
|
|
159
|
+
availability_zone=default_get_instance_types.instance_types[0].availability_zones[0],
|
|
160
|
+
instance_charge_type="PostPaid",
|
|
161
|
+
system_disk_category="cloud_essd",
|
|
158
162
|
vswitch_id=default_get_switches.ids[0],
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
performance_level="PL1",
|
|
164
|
-
fs_name=name,
|
|
165
|
-
size=100)
|
|
166
|
-
example_instance_attachment = alicloud.databasefilesystem.InstanceAttachment("example",
|
|
167
|
-
ecs_id=default_instance.id,
|
|
168
|
-
instance_id=default_instance2.id)
|
|
163
|
+
instance_name=name)
|
|
164
|
+
default_instance_attachment = alicloud.databasefilesystem.InstanceAttachment("default",
|
|
165
|
+
instance_id=default.instances[0].id,
|
|
166
|
+
ecs_id=default_instance.id)
|
|
169
167
|
```
|
|
170
168
|
|
|
171
169
|
## Import
|
|
172
170
|
|
|
173
|
-
DBFS Instance Attachment can be imported using the id, e.g.
|
|
171
|
+
Database File System (DBFS) Instance Attachment can be imported using the id, e.g.
|
|
174
172
|
|
|
175
173
|
```sh
|
|
176
174
|
$ pulumi import alicloud:databasefilesystem/instanceAttachment:InstanceAttachment example <instance_id>:<ecs_id>
|
|
@@ -179,7 +177,7 @@ class InstanceAttachment(pulumi.CustomResource):
|
|
|
179
177
|
:param str resource_name: The name of the resource.
|
|
180
178
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
181
179
|
:param pulumi.Input[str] ecs_id: The ID of the ECS instance.
|
|
182
|
-
:param pulumi.Input[str] instance_id: The ID of the
|
|
180
|
+
:param pulumi.Input[str] instance_id: The ID of the Database File System.
|
|
183
181
|
"""
|
|
184
182
|
...
|
|
185
183
|
@overload
|
|
@@ -188,9 +186,9 @@ class InstanceAttachment(pulumi.CustomResource):
|
|
|
188
186
|
args: InstanceAttachmentArgs,
|
|
189
187
|
opts: Optional[pulumi.ResourceOptions] = None):
|
|
190
188
|
"""
|
|
191
|
-
Provides a DBFS Instance Attachment resource.
|
|
189
|
+
Provides a Database File System (DBFS) Instance Attachment resource.
|
|
192
190
|
|
|
193
|
-
For information about DBFS Instance Attachment and how to use it.
|
|
191
|
+
For information about Database File System (DBFS) Instance Attachment and how to use it, see [What is Snapshot](https://help.aliyun.com/zh/dbfs/developer-reference/api-dbfs-2020-04-18-attachdbfs).
|
|
194
192
|
|
|
195
193
|
> **NOTE:** Available since v1.156.0.
|
|
196
194
|
|
|
@@ -205,41 +203,39 @@ class InstanceAttachment(pulumi.CustomResource):
|
|
|
205
203
|
config = pulumi.Config()
|
|
206
204
|
name = config.get("name")
|
|
207
205
|
if name is None:
|
|
208
|
-
name = "
|
|
206
|
+
name = "terraform-example"
|
|
209
207
|
zone_id = "cn-hangzhou-i"
|
|
210
|
-
|
|
208
|
+
default = alicloud.databasefilesystem.get_instances()
|
|
209
|
+
default_get_instance_types = alicloud.ecs.get_instance_types(availability_zone=zone_id,
|
|
211
210
|
instance_type_family="ecs.g7se")
|
|
212
|
-
|
|
213
|
-
name_regex="^
|
|
211
|
+
default_get_images = alicloud.ecs.get_images(instance_type=default_get_instance_types.instance_types[0].id,
|
|
212
|
+
name_regex="^aliyun_2_19",
|
|
214
213
|
owners="system")
|
|
215
|
-
|
|
216
|
-
default_get_switches = alicloud.vpc.get_switches(vpc_id=
|
|
214
|
+
default_get_networks = alicloud.vpc.get_networks(name_regex="^default-NODELETING$")
|
|
215
|
+
default_get_switches = alicloud.vpc.get_switches(vpc_id=default_get_networks.ids[0],
|
|
217
216
|
zone_id=zone_id)
|
|
218
|
-
|
|
217
|
+
default_security_group = alicloud.ecs.SecurityGroup("default",
|
|
219
218
|
name=name,
|
|
220
|
-
vpc_id=
|
|
219
|
+
vpc_id=default_get_networks.ids[0])
|
|
221
220
|
default_instance = alicloud.ecs.Instance("default",
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
221
|
+
image_id=default_get_images.images[0].id,
|
|
222
|
+
instance_type=default_get_instance_types.instance_types[0].id,
|
|
223
|
+
security_groups=[__item.id for __item in [default_security_group]],
|
|
224
|
+
internet_charge_type="PayByTraffic",
|
|
225
|
+
internet_max_bandwidth_out=10,
|
|
226
|
+
availability_zone=default_get_instance_types.instance_types[0].availability_zones[0],
|
|
227
|
+
instance_charge_type="PostPaid",
|
|
228
|
+
system_disk_category="cloud_essd",
|
|
227
229
|
vswitch_id=default_get_switches.ids[0],
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
performance_level="PL1",
|
|
233
|
-
fs_name=name,
|
|
234
|
-
size=100)
|
|
235
|
-
example_instance_attachment = alicloud.databasefilesystem.InstanceAttachment("example",
|
|
236
|
-
ecs_id=default_instance.id,
|
|
237
|
-
instance_id=default_instance2.id)
|
|
230
|
+
instance_name=name)
|
|
231
|
+
default_instance_attachment = alicloud.databasefilesystem.InstanceAttachment("default",
|
|
232
|
+
instance_id=default.instances[0].id,
|
|
233
|
+
ecs_id=default_instance.id)
|
|
238
234
|
```
|
|
239
235
|
|
|
240
236
|
## Import
|
|
241
237
|
|
|
242
|
-
DBFS Instance Attachment can be imported using the id, e.g.
|
|
238
|
+
Database File System (DBFS) Instance Attachment can be imported using the id, e.g.
|
|
243
239
|
|
|
244
240
|
```sh
|
|
245
241
|
$ pulumi import alicloud:databasefilesystem/instanceAttachment:InstanceAttachment example <instance_id>:<ecs_id>
|
|
@@ -299,8 +295,8 @@ class InstanceAttachment(pulumi.CustomResource):
|
|
|
299
295
|
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
|
300
296
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
301
297
|
:param pulumi.Input[str] ecs_id: The ID of the ECS instance.
|
|
302
|
-
:param pulumi.Input[str] instance_id: The ID of the
|
|
303
|
-
:param pulumi.Input[str] status: The status of
|
|
298
|
+
:param pulumi.Input[str] instance_id: The ID of the Database File System.
|
|
299
|
+
:param pulumi.Input[str] status: The status of Instance Attachment.
|
|
304
300
|
"""
|
|
305
301
|
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
|
306
302
|
|
|
@@ -323,7 +319,7 @@ class InstanceAttachment(pulumi.CustomResource):
|
|
|
323
319
|
@pulumi.getter(name="instanceId")
|
|
324
320
|
def instance_id(self) -> pulumi.Output[str]:
|
|
325
321
|
"""
|
|
326
|
-
The ID of the
|
|
322
|
+
The ID of the Database File System.
|
|
327
323
|
"""
|
|
328
324
|
return pulumi.get(self, "instance_id")
|
|
329
325
|
|
|
@@ -331,7 +327,7 @@ class InstanceAttachment(pulumi.CustomResource):
|
|
|
331
327
|
@pulumi.getter
|
|
332
328
|
def status(self) -> pulumi.Output[str]:
|
|
333
329
|
"""
|
|
334
|
-
The status of
|
|
330
|
+
The status of Instance Attachment.
|
|
335
331
|
"""
|
|
336
332
|
return pulumi.get(self, "status")
|
|
337
333
|
|