Instance Args
Provides a DBFS Dbfs Instance resource. An instance of a database file system is equivalent to a file system and can store data of file types. For information about DBFS Dbfs Instance and how to use it, see What is Dbfs Instance.
NOTE: Need to contact us open whitelist before you can use the resource. NOTE: Available since v1.136.0.
Example Usage
Basic Usage
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const config = new pulumi.Config();
const name = config.get("name") || "terraform-example";
const example = new alicloud.databasefilesystem.Instance("example", {
category: "standard",
zoneId: "cn-hangzhou-i",
performanceLevel: "PL1",
fsName: name,
size: 100,
});
import pulumi
import pulumi_alicloud as alicloud
config = pulumi.Config()
name = config.get("name")
if name is None:
name = "terraform-example"
example = alicloud.databasefilesystem.Instance("example",
category="standard",
zone_id="cn-hangzhou-i",
performance_level="PL1",
fs_name=name,
size=100)
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
return await Deployment.RunAsync(() =>
{
var config = new Config();
var name = config.Get("name") ?? "terraform-example";
var example = new AliCloud.DatabaseFilesystem.Instance("example", new()
{
Category = "standard",
ZoneId = "cn-hangzhou-i",
PerformanceLevel = "PL1",
FsName = name,
Size = 100,
});
});
package main
import (
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/databasefilesystem"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
cfg := config.New(ctx, "")
name := "terraform-example"
if param := cfg.Get("name"); param != "" {
name = param
}
_, err := databasefilesystem.NewInstance(ctx, "example", &databasefilesystem.InstanceArgs{
Category: pulumi.String("standard"),
ZoneId: pulumi.String("cn-hangzhou-i"),
PerformanceLevel: pulumi.String("PL1"),
FsName: pulumi.String(name),
Size: pulumi.Int(100),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.databasefilesystem.Instance;
import com.pulumi.alicloud.databasefilesystem.InstanceArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var config = ctx.config();
final var name = config.get("name").orElse("terraform-example");
var example = new Instance("example", InstanceArgs.builder()
.category("standard")
.zoneId("cn-hangzhou-i")
.performanceLevel("PL1")
.fsName(name)
.size(100)
.build());
}
}
configuration:
name:
type: string
default: terraform-example
resources:
example:
type: alicloud:databasefilesystem:Instance
properties:
category: standard
zoneId: cn-hangzhou-i
performanceLevel: PL1
fsName: ${name}
size: 100
Import
DBFS Dbfs Instance can be imported using the id, e.g.
$ pulumi import alicloud:databasefilesystem/instance:Instance example <id>
Constructors
Properties
The number of CPU cores and the upper limit of memory used by the database file storage instance.
Whether to delete the original snapshot after creating DBFS using the snapshot.
The collection of ECS instances mounted to the Database file system. See ecs_list
below. NOTE: Field 'ecs_list' has been deprecated from provider version 1.156.0 and it will be removed in the future version. Please use the new resource 'alicloud_dbfs_instance_attachment' to attach ECS and DBFS. See ecs_list
below.
Whether to create DBFS in RAID mode. If created in RAID mode, the capacity is at least 66GB.Valid values: true or false. Default value: false.
Whether to encrypt DBFS.Valid values: true or false. Default value: false.
. Field 'instance_name' has been deprecated from provider version 1.212.0. New field 'fs_name' instead.
Instance type. Value range:
When you create a DBFS instance, set the performance level of the DBFS instance. Value range:
Number of strips. Required when the EnableRaid parameter is true.Value range: Currently, only 8 stripes are supported.
The ID of the snapshot used to create the DBFS instance.