pulumi-alicloud 3.65.1a1731504533__py3-none-any.whl → 3.66.0a1730783952__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 +0 -58
- pulumi_alicloud/arms/remote_write.py +2 -2
- pulumi_alicloud/cen/transit_router_vbr_attachment.py +74 -96
- pulumi_alicloud/cms/hybrid_monitor_fc_task.py +26 -28
- pulumi_alicloud/cr/chain.py +14 -22
- pulumi_alicloud/cr/chart_repository.py +6 -14
- pulumi_alicloud/cr/repo.py +8 -8
- pulumi_alicloud/cr/vpc_endpoint_linked_vpc.py +6 -14
- pulumi_alicloud/databasefilesystem/instance_attachment.py +63 -59
- pulumi_alicloud/databasefilesystem/snapshot.py +109 -53
- pulumi_alicloud/ecs/instance.py +7 -7
- pulumi_alicloud/ess/scaling_configuration.py +7 -7
- pulumi_alicloud/fc/trigger.py +138 -202
- pulumi_alicloud/ga/custom_routing_endpoint_traffic_policy.py +44 -48
- pulumi_alicloud/governance/_inputs.py +0 -54
- pulumi_alicloud/governance/account.py +14 -49
- pulumi_alicloud/governance/outputs.py +0 -51
- pulumi_alicloud/gpdb/instance.py +15 -196
- pulumi_alicloud/kms/instance.py +0 -28
- 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 +71 -1102
- pulumi_alicloud/threatdetection/honeypot_preset.py +0 -2
- pulumi_alicloud/vpn/gateway_vco_route.py +8 -28
- {pulumi_alicloud-3.65.1a1731504533.dist-info → pulumi_alicloud-3.66.0a1730783952.dist-info}/METADATA +1 -1
- {pulumi_alicloud-3.65.1a1731504533.dist-info → pulumi_alicloud-3.66.0a1730783952.dist-info}/RECORD +35 -35
- {pulumi_alicloud-3.65.1a1731504533.dist-info → pulumi_alicloud-3.66.0a1730783952.dist-info}/WHEEL +1 -1
- {pulumi_alicloud-3.65.1a1731504533.dist-info → pulumi_alicloud-3.66.0a1730783952.dist-info}/top_level.txt +0 -0
pulumi_alicloud/cr/chain.py
CHANGED
|
@@ -266,31 +266,27 @@ class Chain(pulumi.CustomResource):
|
|
|
266
266
|
```python
|
|
267
267
|
import pulumi
|
|
268
268
|
import pulumi_alicloud as alicloud
|
|
269
|
-
import pulumi_random as random
|
|
270
269
|
|
|
271
270
|
config = pulumi.Config()
|
|
272
271
|
name = config.get("name")
|
|
273
272
|
if name is None:
|
|
274
273
|
name = "tf-example"
|
|
275
|
-
default =
|
|
276
|
-
min=100000,
|
|
277
|
-
max=999999)
|
|
278
|
-
default_registry_enterprise_instance = alicloud.cr.RegistryEnterpriseInstance("default",
|
|
274
|
+
default = alicloud.cr.RegistryEnterpriseInstance("default",
|
|
279
275
|
payment_type="Subscription",
|
|
280
276
|
period=1,
|
|
281
277
|
renew_period=0,
|
|
282
278
|
renewal_status="ManualRenewal",
|
|
283
279
|
instance_type="Advanced",
|
|
284
|
-
instance_name=
|
|
280
|
+
instance_name=name)
|
|
285
281
|
default_registry_enterprise_namespace = alicloud.cs.RegistryEnterpriseNamespace("default",
|
|
286
|
-
instance_id=
|
|
287
|
-
name=
|
|
282
|
+
instance_id=default.id,
|
|
283
|
+
name=name,
|
|
288
284
|
auto_create=False,
|
|
289
285
|
default_visibility="PUBLIC")
|
|
290
286
|
default_registry_enterprise_repo = alicloud.cs.RegistryEnterpriseRepo("default",
|
|
291
|
-
instance_id=
|
|
287
|
+
instance_id=default.id,
|
|
292
288
|
namespace=default_registry_enterprise_namespace.name,
|
|
293
|
-
name=
|
|
289
|
+
name=name,
|
|
294
290
|
summary="this is summary of my new repo",
|
|
295
291
|
repo_type="PUBLIC",
|
|
296
292
|
detail="this is a public repo")
|
|
@@ -403,7 +399,7 @@ class Chain(pulumi.CustomResource):
|
|
|
403
399
|
},
|
|
404
400
|
],
|
|
405
401
|
}],
|
|
406
|
-
chain_name=
|
|
402
|
+
chain_name=name,
|
|
407
403
|
description=name,
|
|
408
404
|
instance_id=default_registry_enterprise_namespace.instance_id,
|
|
409
405
|
repo_name=default_registry_enterprise_repo.name,
|
|
@@ -447,31 +443,27 @@ class Chain(pulumi.CustomResource):
|
|
|
447
443
|
```python
|
|
448
444
|
import pulumi
|
|
449
445
|
import pulumi_alicloud as alicloud
|
|
450
|
-
import pulumi_random as random
|
|
451
446
|
|
|
452
447
|
config = pulumi.Config()
|
|
453
448
|
name = config.get("name")
|
|
454
449
|
if name is None:
|
|
455
450
|
name = "tf-example"
|
|
456
|
-
default =
|
|
457
|
-
min=100000,
|
|
458
|
-
max=999999)
|
|
459
|
-
default_registry_enterprise_instance = alicloud.cr.RegistryEnterpriseInstance("default",
|
|
451
|
+
default = alicloud.cr.RegistryEnterpriseInstance("default",
|
|
460
452
|
payment_type="Subscription",
|
|
461
453
|
period=1,
|
|
462
454
|
renew_period=0,
|
|
463
455
|
renewal_status="ManualRenewal",
|
|
464
456
|
instance_type="Advanced",
|
|
465
|
-
instance_name=
|
|
457
|
+
instance_name=name)
|
|
466
458
|
default_registry_enterprise_namespace = alicloud.cs.RegistryEnterpriseNamespace("default",
|
|
467
|
-
instance_id=
|
|
468
|
-
name=
|
|
459
|
+
instance_id=default.id,
|
|
460
|
+
name=name,
|
|
469
461
|
auto_create=False,
|
|
470
462
|
default_visibility="PUBLIC")
|
|
471
463
|
default_registry_enterprise_repo = alicloud.cs.RegistryEnterpriseRepo("default",
|
|
472
|
-
instance_id=
|
|
464
|
+
instance_id=default.id,
|
|
473
465
|
namespace=default_registry_enterprise_namespace.name,
|
|
474
|
-
name=
|
|
466
|
+
name=name,
|
|
475
467
|
summary="this is summary of my new repo",
|
|
476
468
|
repo_type="PUBLIC",
|
|
477
469
|
detail="this is a public repo")
|
|
@@ -584,7 +576,7 @@ class Chain(pulumi.CustomResource):
|
|
|
584
576
|
},
|
|
585
577
|
],
|
|
586
578
|
}],
|
|
587
|
-
chain_name=
|
|
579
|
+
chain_name=name,
|
|
588
580
|
description=name,
|
|
589
581
|
instance_id=default_registry_enterprise_namespace.instance_id,
|
|
590
582
|
repo_name=default_registry_enterprise_repo.name,
|
|
@@ -214,29 +214,25 @@ class ChartRepository(pulumi.CustomResource):
|
|
|
214
214
|
```python
|
|
215
215
|
import pulumi
|
|
216
216
|
import pulumi_alicloud as alicloud
|
|
217
|
-
import pulumi_random as random
|
|
218
217
|
|
|
219
218
|
config = pulumi.Config()
|
|
220
219
|
name = config.get("name")
|
|
221
220
|
if name is None:
|
|
222
221
|
name = "tf-example"
|
|
223
|
-
default = random.index.Integer("default",
|
|
224
|
-
min=100000,
|
|
225
|
-
max=999999)
|
|
226
222
|
example = alicloud.cr.RegistryEnterpriseInstance("example",
|
|
227
223
|
payment_type="Subscription",
|
|
228
224
|
period=1,
|
|
229
225
|
renew_period=0,
|
|
230
226
|
renewal_status="ManualRenewal",
|
|
231
227
|
instance_type="Advanced",
|
|
232
|
-
instance_name=
|
|
228
|
+
instance_name=name)
|
|
233
229
|
example_chart_namespace = alicloud.cr.ChartNamespace("example",
|
|
234
230
|
instance_id=example.id,
|
|
235
|
-
namespace_name=
|
|
231
|
+
namespace_name=name)
|
|
236
232
|
example_chart_repository = alicloud.cr.ChartRepository("example",
|
|
237
233
|
repo_namespace_name=example_chart_namespace.namespace_name,
|
|
238
234
|
instance_id=example_chart_namespace.instance_id,
|
|
239
|
-
repo_name=
|
|
235
|
+
repo_name=name)
|
|
240
236
|
```
|
|
241
237
|
|
|
242
238
|
## Import
|
|
@@ -275,29 +271,25 @@ class ChartRepository(pulumi.CustomResource):
|
|
|
275
271
|
```python
|
|
276
272
|
import pulumi
|
|
277
273
|
import pulumi_alicloud as alicloud
|
|
278
|
-
import pulumi_random as random
|
|
279
274
|
|
|
280
275
|
config = pulumi.Config()
|
|
281
276
|
name = config.get("name")
|
|
282
277
|
if name is None:
|
|
283
278
|
name = "tf-example"
|
|
284
|
-
default = random.index.Integer("default",
|
|
285
|
-
min=100000,
|
|
286
|
-
max=999999)
|
|
287
279
|
example = alicloud.cr.RegistryEnterpriseInstance("example",
|
|
288
280
|
payment_type="Subscription",
|
|
289
281
|
period=1,
|
|
290
282
|
renew_period=0,
|
|
291
283
|
renewal_status="ManualRenewal",
|
|
292
284
|
instance_type="Advanced",
|
|
293
|
-
instance_name=
|
|
285
|
+
instance_name=name)
|
|
294
286
|
example_chart_namespace = alicloud.cr.ChartNamespace("example",
|
|
295
287
|
instance_id=example.id,
|
|
296
|
-
namespace_name=
|
|
288
|
+
namespace_name=name)
|
|
297
289
|
example_chart_repository = alicloud.cr.ChartRepository("example",
|
|
298
290
|
repo_namespace_name=example_chart_namespace.namespace_name,
|
|
299
291
|
instance_id=example_chart_namespace.instance_id,
|
|
300
|
-
repo_name=
|
|
292
|
+
repo_name=name)
|
|
301
293
|
```
|
|
302
294
|
|
|
303
295
|
## 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:
|
|
118
|
+
:param pulumi.Input['RepoDomainListArgs'] domain_list: 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
|
-
|
|
153
|
+
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="PUBLIC",
|
|
249
|
+
detail="this is a public 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="PUBLIC",
|
|
302
|
+
detail="this is a public 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:
|
|
378
|
+
:param pulumi.Input[Union['RepoDomainListArgs', 'RepoDomainListArgsDict']] domain_list: 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
|
-
|
|
408
|
+
The repository domain list.
|
|
409
409
|
"""
|
|
410
410
|
return pulumi.get(self, "domain_list")
|
|
411
411
|
|
|
@@ -237,21 +237,17 @@ class VpcEndpointLinkedVpc(pulumi.CustomResource):
|
|
|
237
237
|
```python
|
|
238
238
|
import pulumi
|
|
239
239
|
import pulumi_alicloud as alicloud
|
|
240
|
-
import pulumi_random as random
|
|
241
240
|
|
|
242
241
|
config = pulumi.Config()
|
|
243
242
|
name = config.get("name")
|
|
244
243
|
if name is None:
|
|
245
244
|
name = "tf-example"
|
|
246
|
-
default_integer = random.index.Integer("default",
|
|
247
|
-
min=100000,
|
|
248
|
-
max=999999)
|
|
249
245
|
default = alicloud.get_zones(available_resource_creation="VSwitch")
|
|
250
246
|
default_network = alicloud.vpc.Network("default",
|
|
251
|
-
vpc_name=
|
|
247
|
+
vpc_name=name,
|
|
252
248
|
cidr_block="10.4.0.0/16")
|
|
253
249
|
default_switch = alicloud.vpc.Switch("default",
|
|
254
|
-
vswitch_name=
|
|
250
|
+
vswitch_name=name,
|
|
255
251
|
cidr_block="10.4.0.0/24",
|
|
256
252
|
vpc_id=default_network.id,
|
|
257
253
|
zone_id=default.zones[0].id)
|
|
@@ -261,7 +257,7 @@ class VpcEndpointLinkedVpc(pulumi.CustomResource):
|
|
|
261
257
|
renew_period=0,
|
|
262
258
|
renewal_status="ManualRenewal",
|
|
263
259
|
instance_type="Advanced",
|
|
264
|
-
instance_name=
|
|
260
|
+
instance_name=name)
|
|
265
261
|
default_vpc_endpoint_linked_vpc = alicloud.cr.VpcEndpointLinkedVpc("default",
|
|
266
262
|
instance_id=default_registry_enterprise_instance.id,
|
|
267
263
|
vpc_id=default_network.id,
|
|
@@ -308,21 +304,17 @@ class VpcEndpointLinkedVpc(pulumi.CustomResource):
|
|
|
308
304
|
```python
|
|
309
305
|
import pulumi
|
|
310
306
|
import pulumi_alicloud as alicloud
|
|
311
|
-
import pulumi_random as random
|
|
312
307
|
|
|
313
308
|
config = pulumi.Config()
|
|
314
309
|
name = config.get("name")
|
|
315
310
|
if name is None:
|
|
316
311
|
name = "tf-example"
|
|
317
|
-
default_integer = random.index.Integer("default",
|
|
318
|
-
min=100000,
|
|
319
|
-
max=999999)
|
|
320
312
|
default = alicloud.get_zones(available_resource_creation="VSwitch")
|
|
321
313
|
default_network = alicloud.vpc.Network("default",
|
|
322
|
-
vpc_name=
|
|
314
|
+
vpc_name=name,
|
|
323
315
|
cidr_block="10.4.0.0/16")
|
|
324
316
|
default_switch = alicloud.vpc.Switch("default",
|
|
325
|
-
vswitch_name=
|
|
317
|
+
vswitch_name=name,
|
|
326
318
|
cidr_block="10.4.0.0/24",
|
|
327
319
|
vpc_id=default_network.id,
|
|
328
320
|
zone_id=default.zones[0].id)
|
|
@@ -332,7 +324,7 @@ class VpcEndpointLinkedVpc(pulumi.CustomResource):
|
|
|
332
324
|
renew_period=0,
|
|
333
325
|
renewal_status="ManualRenewal",
|
|
334
326
|
instance_type="Advanced",
|
|
335
|
-
instance_name=
|
|
327
|
+
instance_name=name)
|
|
336
328
|
default_vpc_endpoint_linked_vpc = alicloud.cr.VpcEndpointLinkedVpc("default",
|
|
337
329
|
instance_id=default_registry_enterprise_instance.id,
|
|
338
330
|
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 Database file system. Valid values: `attached`, `attaching`, `unattached`, `detaching`.
|
|
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 Database file system. Valid values: `attached`, `attaching`, `unattached`, `detaching`.
|
|
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
|
|
122
|
+
Provides a DBFS Instance Attachment resource.
|
|
123
123
|
|
|
124
|
-
For information about
|
|
124
|
+
For information about DBFS Instance Attachment and how to use it.
|
|
125
125
|
|
|
126
126
|
> **NOTE:** Available since v1.156.0.
|
|
127
127
|
|
|
@@ -136,39 +136,41 @@ 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 = "tf-example"
|
|
140
140
|
zone_id = "cn-hangzhou-i"
|
|
141
|
-
|
|
142
|
-
default_get_instance_types = alicloud.ecs.get_instance_types(availability_zone=zone_id,
|
|
141
|
+
example = alicloud.ecs.get_instance_types(availability_zone=zone_id,
|
|
143
142
|
instance_type_family="ecs.g7se")
|
|
144
|
-
|
|
145
|
-
name_regex="^
|
|
143
|
+
example_get_images = alicloud.ecs.get_images(instance_type=example.instance_types[len(example.instance_types) - 1].id,
|
|
144
|
+
name_regex="^aliyun_2_1903_x64_20G_alibase_20240628.vhd",
|
|
146
145
|
owners="system")
|
|
147
|
-
|
|
148
|
-
default_get_switches = alicloud.vpc.get_switches(vpc_id=
|
|
146
|
+
default = alicloud.vpc.get_networks(name_regex="^default-NODELETING$")
|
|
147
|
+
default_get_switches = alicloud.vpc.get_switches(vpc_id=default.ids[0],
|
|
149
148
|
zone_id=zone_id)
|
|
150
|
-
|
|
149
|
+
example_security_group = alicloud.ecs.SecurityGroup("example",
|
|
151
150
|
name=name,
|
|
152
|
-
vpc_id=
|
|
151
|
+
vpc_id=default.ids[0])
|
|
153
152
|
default_instance = alicloud.ecs.Instance("default",
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
availability_zone=default_get_instance_types.instance_types[0].availability_zones[0],
|
|
160
|
-
instance_charge_type="PostPaid",
|
|
161
|
-
system_disk_category="cloud_essd",
|
|
153
|
+
availability_zone=zone_id,
|
|
154
|
+
instance_name=name,
|
|
155
|
+
image_id=example_get_images.images[0].id,
|
|
156
|
+
instance_type=example.instance_types[len(example.instance_types) - 1].id,
|
|
157
|
+
security_groups=[example_security_group.id],
|
|
162
158
|
vswitch_id=default_get_switches.ids[0],
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
159
|
+
system_disk_category="cloud_essd")
|
|
160
|
+
default_instance2 = alicloud.databasefilesystem.Instance("default",
|
|
161
|
+
category="enterprise",
|
|
162
|
+
zone_id=default_instance.availability_zone,
|
|
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)
|
|
167
169
|
```
|
|
168
170
|
|
|
169
171
|
## Import
|
|
170
172
|
|
|
171
|
-
|
|
173
|
+
DBFS Instance Attachment can be imported using the id, e.g.
|
|
172
174
|
|
|
173
175
|
```sh
|
|
174
176
|
$ pulumi import alicloud:databasefilesystem/instanceAttachment:InstanceAttachment example <instance_id>:<ecs_id>
|
|
@@ -177,7 +179,7 @@ class InstanceAttachment(pulumi.CustomResource):
|
|
|
177
179
|
:param str resource_name: The name of the resource.
|
|
178
180
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
179
181
|
:param pulumi.Input[str] ecs_id: The ID of the ECS instance.
|
|
180
|
-
:param pulumi.Input[str] instance_id: The ID of the
|
|
182
|
+
:param pulumi.Input[str] instance_id: The ID of the database file system.
|
|
181
183
|
"""
|
|
182
184
|
...
|
|
183
185
|
@overload
|
|
@@ -186,9 +188,9 @@ class InstanceAttachment(pulumi.CustomResource):
|
|
|
186
188
|
args: InstanceAttachmentArgs,
|
|
187
189
|
opts: Optional[pulumi.ResourceOptions] = None):
|
|
188
190
|
"""
|
|
189
|
-
Provides a
|
|
191
|
+
Provides a DBFS Instance Attachment resource.
|
|
190
192
|
|
|
191
|
-
For information about
|
|
193
|
+
For information about DBFS Instance Attachment and how to use it.
|
|
192
194
|
|
|
193
195
|
> **NOTE:** Available since v1.156.0.
|
|
194
196
|
|
|
@@ -203,39 +205,41 @@ class InstanceAttachment(pulumi.CustomResource):
|
|
|
203
205
|
config = pulumi.Config()
|
|
204
206
|
name = config.get("name")
|
|
205
207
|
if name is None:
|
|
206
|
-
name = "
|
|
208
|
+
name = "tf-example"
|
|
207
209
|
zone_id = "cn-hangzhou-i"
|
|
208
|
-
|
|
209
|
-
default_get_instance_types = alicloud.ecs.get_instance_types(availability_zone=zone_id,
|
|
210
|
+
example = alicloud.ecs.get_instance_types(availability_zone=zone_id,
|
|
210
211
|
instance_type_family="ecs.g7se")
|
|
211
|
-
|
|
212
|
-
name_regex="^
|
|
212
|
+
example_get_images = alicloud.ecs.get_images(instance_type=example.instance_types[len(example.instance_types) - 1].id,
|
|
213
|
+
name_regex="^aliyun_2_1903_x64_20G_alibase_20240628.vhd",
|
|
213
214
|
owners="system")
|
|
214
|
-
|
|
215
|
-
default_get_switches = alicloud.vpc.get_switches(vpc_id=
|
|
215
|
+
default = alicloud.vpc.get_networks(name_regex="^default-NODELETING$")
|
|
216
|
+
default_get_switches = alicloud.vpc.get_switches(vpc_id=default.ids[0],
|
|
216
217
|
zone_id=zone_id)
|
|
217
|
-
|
|
218
|
+
example_security_group = alicloud.ecs.SecurityGroup("example",
|
|
218
219
|
name=name,
|
|
219
|
-
vpc_id=
|
|
220
|
+
vpc_id=default.ids[0])
|
|
220
221
|
default_instance = alicloud.ecs.Instance("default",
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
availability_zone=default_get_instance_types.instance_types[0].availability_zones[0],
|
|
227
|
-
instance_charge_type="PostPaid",
|
|
228
|
-
system_disk_category="cloud_essd",
|
|
222
|
+
availability_zone=zone_id,
|
|
223
|
+
instance_name=name,
|
|
224
|
+
image_id=example_get_images.images[0].id,
|
|
225
|
+
instance_type=example.instance_types[len(example.instance_types) - 1].id,
|
|
226
|
+
security_groups=[example_security_group.id],
|
|
229
227
|
vswitch_id=default_get_switches.ids[0],
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
228
|
+
system_disk_category="cloud_essd")
|
|
229
|
+
default_instance2 = alicloud.databasefilesystem.Instance("default",
|
|
230
|
+
category="enterprise",
|
|
231
|
+
zone_id=default_instance.availability_zone,
|
|
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)
|
|
234
238
|
```
|
|
235
239
|
|
|
236
240
|
## Import
|
|
237
241
|
|
|
238
|
-
|
|
242
|
+
DBFS Instance Attachment can be imported using the id, e.g.
|
|
239
243
|
|
|
240
244
|
```sh
|
|
241
245
|
$ pulumi import alicloud:databasefilesystem/instanceAttachment:InstanceAttachment example <instance_id>:<ecs_id>
|
|
@@ -295,8 +299,8 @@ class InstanceAttachment(pulumi.CustomResource):
|
|
|
295
299
|
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
|
296
300
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
297
301
|
:param pulumi.Input[str] ecs_id: The ID of the ECS instance.
|
|
298
|
-
:param pulumi.Input[str] instance_id: The ID of the
|
|
299
|
-
:param pulumi.Input[str] status: The status of
|
|
302
|
+
:param pulumi.Input[str] instance_id: The ID of the database file system.
|
|
303
|
+
:param pulumi.Input[str] status: The status of Database file system. Valid values: `attached`, `attaching`, `unattached`, `detaching`.
|
|
300
304
|
"""
|
|
301
305
|
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
|
302
306
|
|
|
@@ -319,7 +323,7 @@ class InstanceAttachment(pulumi.CustomResource):
|
|
|
319
323
|
@pulumi.getter(name="instanceId")
|
|
320
324
|
def instance_id(self) -> pulumi.Output[str]:
|
|
321
325
|
"""
|
|
322
|
-
The ID of the
|
|
326
|
+
The ID of the database file system.
|
|
323
327
|
"""
|
|
324
328
|
return pulumi.get(self, "instance_id")
|
|
325
329
|
|
|
@@ -327,7 +331,7 @@ class InstanceAttachment(pulumi.CustomResource):
|
|
|
327
331
|
@pulumi.getter
|
|
328
332
|
def status(self) -> pulumi.Output[str]:
|
|
329
333
|
"""
|
|
330
|
-
The status of
|
|
334
|
+
The status of Database file system. Valid values: `attached`, `attaching`, `unattached`, `detaching`.
|
|
331
335
|
"""
|
|
332
336
|
return pulumi.get(self, "status")
|
|
333
337
|
|