LustreFileSystem
Manages a FSx Lustre File System. See the FSx Lustre Guide for more information.
Example Usage
using Pulumi;
using Aws = Pulumi.Aws;
class MyStack : Stack
{
public MyStack()
{
var example = new Aws.Fsx.LustreFileSystem("example", new Aws.Fsx.LustreFileSystemArgs
{
ImportPath = $"s3://{aws_s3_bucket.Example.Bucket}",
StorageCapacity = 1200,
SubnetIds = aws_subnet.Example.Id,
});
}
}
package main
import (
"fmt"
"github.com/pulumi/pulumi-aws/sdk/v2/go/aws/fsx"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := fsx.NewLustreFileSystem(ctx, "example", &fsx.LustreFileSystemArgs{
ImportPath: pulumi.String(fmt.Sprintf("%v%v", "s3://", aws_s3_bucket.Example.Bucket)),
StorageCapacity: pulumi.Int(1200),
SubnetIds: pulumi.String(aws_subnet.Example.Id),
})
if err != nil {
return err
}
return nil
})
}import pulumi
import pulumi_aws as aws
example = aws.fsx.LustreFileSystem("example",
import_path=f"s3://{aws_s3_bucket['example']['bucket']}",
storage_capacity=1200,
subnet_ids=aws_subnet["example"]["id"])import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = new aws.fsx.LustreFileSystem("example", {
importPath: pulumi.interpolate`s3://${aws_s3_bucket_example.bucket}`,
storageCapacity: 1200,
subnetIds: aws_subnet_example.id,
});Create a LustreFileSystem Resource
new LustreFileSystem(name: string, args: LustreFileSystemArgs, opts?: CustomResourceOptions);def LustreFileSystem(resource_name, opts=None, export_path=None, import_path=None, imported_file_chunk_size=None, security_group_ids=None, storage_capacity=None, subnet_ids=None, tags=None, weekly_maintenance_start_time=None, __props__=None);func NewLustreFileSystem(ctx *Context, name string, args LustreFileSystemArgs, opts ...ResourceOption) (*LustreFileSystem, error)public LustreFileSystem(string name, LustreFileSystemArgs args, CustomResourceOptions? opts = null)- name string
- The unique name of the resource.
- args LustreFileSystemArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- opts ResourceOptions
- A bag of options that control this resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args LustreFileSystemArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args LustreFileSystemArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
LustreFileSystem Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.
Inputs
The LustreFileSystem resource accepts the following input properties:
- Storage
Capacity int The storage capacity (GiB) of the file system. Minimum of
1200. Storage capacity is provisioned in increments of 3,600 GiB.- Subnet
Ids string A list of IDs for the subnets that the file system will be accessible from. File systems currently support only one subnet. The file server is also launched in that subnet’s Availability Zone.
- Export
Path string S3 URI (with optional prefix) where the root of your Amazon FSx file system is exported. Can only be specified with
import_pathargument and the path must use the same Amazon S3 bucket as specified inimport_path. Set equal toimport_pathto overwrite files on export. Defaults tos3://{IMPORT BUCKET}/FSxLustre{CREATION TIMESTAMP}.- Import
Path string S3 URI (with optional prefix) that you’re using as the data repository for your FSx for Lustre file system. For example,
s3://example-bucket/optional-prefix/.- Imported
File intChunk Size For files imported from a data repository, this value determines the stripe count and maximum amount of data per file (in MiB) stored on a single physical disk. Can only be specified with
import_pathargument. Defaults to1024. Minimum of1and maximum of512000.- Security
Group List<string>Ids A list of IDs for the security groups that apply to the specified network interfaces created for file system access. These security groups will apply to all network interfaces.
- Dictionary<string, string>
A map of tags to assign to the file system.
- Weekly
Maintenance stringStart Time The preferred start time (in
d:HH:MMformat) to perform weekly maintenance, in the UTC time zone.
- Storage
Capacity int The storage capacity (GiB) of the file system. Minimum of
1200. Storage capacity is provisioned in increments of 3,600 GiB.- Subnet
Ids string A list of IDs for the subnets that the file system will be accessible from. File systems currently support only one subnet. The file server is also launched in that subnet’s Availability Zone.
- Export
Path string S3 URI (with optional prefix) where the root of your Amazon FSx file system is exported. Can only be specified with
import_pathargument and the path must use the same Amazon S3 bucket as specified inimport_path. Set equal toimport_pathto overwrite files on export. Defaults tos3://{IMPORT BUCKET}/FSxLustre{CREATION TIMESTAMP}.- Import
Path string S3 URI (with optional prefix) that you’re using as the data repository for your FSx for Lustre file system. For example,
s3://example-bucket/optional-prefix/.- Imported
File intChunk Size For files imported from a data repository, this value determines the stripe count and maximum amount of data per file (in MiB) stored on a single physical disk. Can only be specified with
import_pathargument. Defaults to1024. Minimum of1and maximum of512000.- Security
Group []stringIds A list of IDs for the security groups that apply to the specified network interfaces created for file system access. These security groups will apply to all network interfaces.
- map[string]string
A map of tags to assign to the file system.
- Weekly
Maintenance stringStart Time The preferred start time (in
d:HH:MMformat) to perform weekly maintenance, in the UTC time zone.
- storage
Capacity number The storage capacity (GiB) of the file system. Minimum of
1200. Storage capacity is provisioned in increments of 3,600 GiB.- subnet
Ids string A list of IDs for the subnets that the file system will be accessible from. File systems currently support only one subnet. The file server is also launched in that subnet’s Availability Zone.
- export
Path string S3 URI (with optional prefix) where the root of your Amazon FSx file system is exported. Can only be specified with
import_pathargument and the path must use the same Amazon S3 bucket as specified inimport_path. Set equal toimport_pathto overwrite files on export. Defaults tos3://{IMPORT BUCKET}/FSxLustre{CREATION TIMESTAMP}.- import
Path string S3 URI (with optional prefix) that you’re using as the data repository for your FSx for Lustre file system. For example,
s3://example-bucket/optional-prefix/.- imported
File numberChunk Size For files imported from a data repository, this value determines the stripe count and maximum amount of data per file (in MiB) stored on a single physical disk. Can only be specified with
import_pathargument. Defaults to1024. Minimum of1and maximum of512000.- security
Group string[]Ids A list of IDs for the security groups that apply to the specified network interfaces created for file system access. These security groups will apply to all network interfaces.
- {[key: string]: string}
A map of tags to assign to the file system.
- weekly
Maintenance stringStart Time The preferred start time (in
d:HH:MMformat) to perform weekly maintenance, in the UTC time zone.
- storage_
capacity float The storage capacity (GiB) of the file system. Minimum of
1200. Storage capacity is provisioned in increments of 3,600 GiB.- subnet_
ids str A list of IDs for the subnets that the file system will be accessible from. File systems currently support only one subnet. The file server is also launched in that subnet’s Availability Zone.
- export_
path str S3 URI (with optional prefix) where the root of your Amazon FSx file system is exported. Can only be specified with
import_pathargument and the path must use the same Amazon S3 bucket as specified inimport_path. Set equal toimport_pathto overwrite files on export. Defaults tos3://{IMPORT BUCKET}/FSxLustre{CREATION TIMESTAMP}.- import_
path str S3 URI (with optional prefix) that you’re using as the data repository for your FSx for Lustre file system. For example,
s3://example-bucket/optional-prefix/.- imported_
file_ floatchunk_ size For files imported from a data repository, this value determines the stripe count and maximum amount of data per file (in MiB) stored on a single physical disk. Can only be specified with
import_pathargument. Defaults to1024. Minimum of1and maximum of512000.- security_
group_ List[str]ids A list of IDs for the security groups that apply to the specified network interfaces created for file system access. These security groups will apply to all network interfaces.
- Dict[str, str]
A map of tags to assign to the file system.
- weekly_
maintenance_ strstart_ time The preferred start time (in
d:HH:MMformat) to perform weekly maintenance, in the UTC time zone.
Outputs
All input properties are implicitly available as output properties. Additionally, the LustreFileSystem resource produces the following output properties:
- Arn string
Amazon Resource Name of the file system.
- Dns
Name string DNS name for the file system, e.g.
fs-12345678.fsx.us-west-2.amazonaws.com- Id string
- The provider-assigned unique ID for this managed resource.
- Network
Interface List<string>Ids Set of Elastic Network Interface identifiers from which the file system is accessible.
- Owner
Id string AWS account identifier that created the file system.
- Vpc
Id string Identifier of the Virtual Private Cloud for the file system.
- Arn string
Amazon Resource Name of the file system.
- Dns
Name string DNS name for the file system, e.g.
fs-12345678.fsx.us-west-2.amazonaws.com- Id string
- The provider-assigned unique ID for this managed resource.
- Network
Interface []stringIds Set of Elastic Network Interface identifiers from which the file system is accessible.
- Owner
Id string AWS account identifier that created the file system.
- Vpc
Id string Identifier of the Virtual Private Cloud for the file system.
- arn string
Amazon Resource Name of the file system.
- dns
Name string DNS name for the file system, e.g.
fs-12345678.fsx.us-west-2.amazonaws.com- id string
- The provider-assigned unique ID for this managed resource.
- network
Interface string[]Ids Set of Elastic Network Interface identifiers from which the file system is accessible.
- owner
Id string AWS account identifier that created the file system.
- vpc
Id string Identifier of the Virtual Private Cloud for the file system.
- arn str
Amazon Resource Name of the file system.
- dns_
name str DNS name for the file system, e.g.
fs-12345678.fsx.us-west-2.amazonaws.com- id str
- The provider-assigned unique ID for this managed resource.
- network_
interface_ List[str]ids Set of Elastic Network Interface identifiers from which the file system is accessible.
- owner_
id str AWS account identifier that created the file system.
- vpc_
id str Identifier of the Virtual Private Cloud for the file system.
Look up an Existing LustreFileSystem Resource
Get an existing LustreFileSystem resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: LustreFileSystemState, opts?: CustomResourceOptions): LustreFileSystemstatic get(resource_name, id, opts=None, arn=None, dns_name=None, export_path=None, import_path=None, imported_file_chunk_size=None, network_interface_ids=None, owner_id=None, security_group_ids=None, storage_capacity=None, subnet_ids=None, tags=None, vpc_id=None, weekly_maintenance_start_time=None, __props__=None);func GetLustreFileSystem(ctx *Context, name string, id IDInput, state *LustreFileSystemState, opts ...ResourceOption) (*LustreFileSystem, error)public static LustreFileSystem Get(string name, Input<string> id, LustreFileSystemState? state, CustomResourceOptions? opts = null)- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
The following state arguments are supported:
- Arn string
Amazon Resource Name of the file system.
- Dns
Name string DNS name for the file system, e.g.
fs-12345678.fsx.us-west-2.amazonaws.com- Export
Path string S3 URI (with optional prefix) where the root of your Amazon FSx file system is exported. Can only be specified with
import_pathargument and the path must use the same Amazon S3 bucket as specified inimport_path. Set equal toimport_pathto overwrite files on export. Defaults tos3://{IMPORT BUCKET}/FSxLustre{CREATION TIMESTAMP}.- Import
Path string S3 URI (with optional prefix) that you’re using as the data repository for your FSx for Lustre file system. For example,
s3://example-bucket/optional-prefix/.- Imported
File intChunk Size For files imported from a data repository, this value determines the stripe count and maximum amount of data per file (in MiB) stored on a single physical disk. Can only be specified with
import_pathargument. Defaults to1024. Minimum of1and maximum of512000.- Network
Interface List<string>Ids Set of Elastic Network Interface identifiers from which the file system is accessible.
- Owner
Id string AWS account identifier that created the file system.
- Security
Group List<string>Ids A list of IDs for the security groups that apply to the specified network interfaces created for file system access. These security groups will apply to all network interfaces.
- Storage
Capacity int The storage capacity (GiB) of the file system. Minimum of
1200. Storage capacity is provisioned in increments of 3,600 GiB.- Subnet
Ids string A list of IDs for the subnets that the file system will be accessible from. File systems currently support only one subnet. The file server is also launched in that subnet’s Availability Zone.
- Dictionary<string, string>
A map of tags to assign to the file system.
- Vpc
Id string Identifier of the Virtual Private Cloud for the file system.
- Weekly
Maintenance stringStart Time The preferred start time (in
d:HH:MMformat) to perform weekly maintenance, in the UTC time zone.
- Arn string
Amazon Resource Name of the file system.
- Dns
Name string DNS name for the file system, e.g.
fs-12345678.fsx.us-west-2.amazonaws.com- Export
Path string S3 URI (with optional prefix) where the root of your Amazon FSx file system is exported. Can only be specified with
import_pathargument and the path must use the same Amazon S3 bucket as specified inimport_path. Set equal toimport_pathto overwrite files on export. Defaults tos3://{IMPORT BUCKET}/FSxLustre{CREATION TIMESTAMP}.- Import
Path string S3 URI (with optional prefix) that you’re using as the data repository for your FSx for Lustre file system. For example,
s3://example-bucket/optional-prefix/.- Imported
File intChunk Size For files imported from a data repository, this value determines the stripe count and maximum amount of data per file (in MiB) stored on a single physical disk. Can only be specified with
import_pathargument. Defaults to1024. Minimum of1and maximum of512000.- Network
Interface []stringIds Set of Elastic Network Interface identifiers from which the file system is accessible.
- Owner
Id string AWS account identifier that created the file system.
- Security
Group []stringIds A list of IDs for the security groups that apply to the specified network interfaces created for file system access. These security groups will apply to all network interfaces.
- Storage
Capacity int The storage capacity (GiB) of the file system. Minimum of
1200. Storage capacity is provisioned in increments of 3,600 GiB.- Subnet
Ids string A list of IDs for the subnets that the file system will be accessible from. File systems currently support only one subnet. The file server is also launched in that subnet’s Availability Zone.
- map[string]string
A map of tags to assign to the file system.
- Vpc
Id string Identifier of the Virtual Private Cloud for the file system.
- Weekly
Maintenance stringStart Time The preferred start time (in
d:HH:MMformat) to perform weekly maintenance, in the UTC time zone.
- arn string
Amazon Resource Name of the file system.
- dns
Name string DNS name for the file system, e.g.
fs-12345678.fsx.us-west-2.amazonaws.com- export
Path string S3 URI (with optional prefix) where the root of your Amazon FSx file system is exported. Can only be specified with
import_pathargument and the path must use the same Amazon S3 bucket as specified inimport_path. Set equal toimport_pathto overwrite files on export. Defaults tos3://{IMPORT BUCKET}/FSxLustre{CREATION TIMESTAMP}.- import
Path string S3 URI (with optional prefix) that you’re using as the data repository for your FSx for Lustre file system. For example,
s3://example-bucket/optional-prefix/.- imported
File numberChunk Size For files imported from a data repository, this value determines the stripe count and maximum amount of data per file (in MiB) stored on a single physical disk. Can only be specified with
import_pathargument. Defaults to1024. Minimum of1and maximum of512000.- network
Interface string[]Ids Set of Elastic Network Interface identifiers from which the file system is accessible.
- owner
Id string AWS account identifier that created the file system.
- security
Group string[]Ids A list of IDs for the security groups that apply to the specified network interfaces created for file system access. These security groups will apply to all network interfaces.
- storage
Capacity number The storage capacity (GiB) of the file system. Minimum of
1200. Storage capacity is provisioned in increments of 3,600 GiB.- subnet
Ids string A list of IDs for the subnets that the file system will be accessible from. File systems currently support only one subnet. The file server is also launched in that subnet’s Availability Zone.
- {[key: string]: string}
A map of tags to assign to the file system.
- vpc
Id string Identifier of the Virtual Private Cloud for the file system.
- weekly
Maintenance stringStart Time The preferred start time (in
d:HH:MMformat) to perform weekly maintenance, in the UTC time zone.
- arn str
Amazon Resource Name of the file system.
- dns_
name str DNS name for the file system, e.g.
fs-12345678.fsx.us-west-2.amazonaws.com- export_
path str S3 URI (with optional prefix) where the root of your Amazon FSx file system is exported. Can only be specified with
import_pathargument and the path must use the same Amazon S3 bucket as specified inimport_path. Set equal toimport_pathto overwrite files on export. Defaults tos3://{IMPORT BUCKET}/FSxLustre{CREATION TIMESTAMP}.- import_
path str S3 URI (with optional prefix) that you’re using as the data repository for your FSx for Lustre file system. For example,
s3://example-bucket/optional-prefix/.- imported_
file_ floatchunk_ size For files imported from a data repository, this value determines the stripe count and maximum amount of data per file (in MiB) stored on a single physical disk. Can only be specified with
import_pathargument. Defaults to1024. Minimum of1and maximum of512000.- network_
interface_ List[str]ids Set of Elastic Network Interface identifiers from which the file system is accessible.
- owner_
id str AWS account identifier that created the file system.
- security_
group_ List[str]ids A list of IDs for the security groups that apply to the specified network interfaces created for file system access. These security groups will apply to all network interfaces.
- storage_
capacity float The storage capacity (GiB) of the file system. Minimum of
1200. Storage capacity is provisioned in increments of 3,600 GiB.- subnet_
ids str A list of IDs for the subnets that the file system will be accessible from. File systems currently support only one subnet. The file server is also launched in that subnet’s Availability Zone.
- Dict[str, str]
A map of tags to assign to the file system.
- vpc_
id str Identifier of the Virtual Private Cloud for the file system.
- weekly_
maintenance_ strstart_ time The preferred start time (in
d:HH:MMformat) to perform weekly maintenance, in the UTC time zone.
Package Details
- Repository
- https://github.com/pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
awsTerraform Provider.