File System
Provides an Elastic File System (EFS) File System resource.
Example Usage
EFS File System w/ tags
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.efs.FileSystem;
import com.pulumi.aws.efs.FileSystemArgs;
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) {
var foo = new FileSystem("foo", FileSystemArgs.builder()
.tags(Map.of("Name", "MyProduct"))
.build());
}
}
Using lifecycle policy
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.efs.FileSystem;
import com.pulumi.aws.efs.FileSystemArgs;
import com.pulumi.aws.efs.inputs.FileSystemLifecyclePolicyArgs;
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) {
var fooWithLifecylePolicy = new FileSystem("fooWithLifecylePolicy", FileSystemArgs.builder()
.lifecyclePolicies(FileSystemLifecyclePolicyArgs.builder()
.transitionToIa("AFTER_30_DAYS")
.build())
.build());
}
}
Import
The EFS file systems can be imported using the id
, e.g.,
$ pulumi import aws:efs/fileSystem:FileSystem foo fs-6fa144c6
Properties
The identifier of the Availability Zone in which the file system's One Zone storage classes exist.
the AWS Availability Zone in which to create the file system. Used to create a file system that uses One Zone storage classes. See user guide for more information.
A unique name (a maximum of 64 characters are allowed) used as reference when creating the Elastic File System to ensure idempotent file system creation. By default generated by this provider. See Elastic File System user guide for more information.
The DNS name for the filesystem per documented convention.
A file system lifecycle policy object (documented below).
The current number of mount targets that the file system has.
The file system performance mode. Can be either "generalPurpose"
or "maxIO"
(Default: "generalPurpose"
).
The throughput, measured in MiB/s, that you want to provision for the file system. Only applicable with throughput_mode
set to provisioned
.
The latest known metered size (in bytes) of data stored in the file system, the value is not the exact size that the file system was at any point in time. See Size In Bytes.
Throughput mode for the file system. Defaults to bursting
. Valid values: bursting
, provisioned
, or elastic
. When using provisioned
, also set provisioned_throughput_in_mibps
.