Resource: aws_fsx_lustre_file_system

Manages a FSx Lustre File System. See the FSx Lustre Guide for more information.

Example Usage

resource "aws_fsx_lustre_file_system" "example" {
  import_path      = "s3://${aws_s3_bucket.example.bucket}"
  storage_capacity = 1200
  subnet_ids       = [aws_subnet.example.id]
}

Argument Reference

This resource supports the following arguments:

log_configuration

root_squash_configuration

Attribute Reference

This resource exports the following attributes in addition to the arguments above:

Timeouts

Configuration options:

Import

In Terraform v1.5.0 and later, use an import block to import FSx File Systems using the id. For example:

import {
  to = aws_fsx_lustre_file_system.example
  id = "fs-543ab12b1ca672f33"
}

Using terraform import, import FSx File Systems using the id. For example:

% terraform import aws_fsx_lustre_file_system.example fs-543ab12b1ca672f33

Certain resource arguments, like security_group_ids, do not have a FSx API method for reading the information after creation. If the argument is set in the Terraform configuration on an imported resource, Terraform will always show a difference. To workaround this behavior, either omit the argument from the Terraform configuration or use ignore_changes to hide the difference. For example:

resource "aws_fsx_lustre_file_system" "example" {
  # ... other configuration ...
  security_group_ids = [aws_security_group.example.id]

  # There is no FSx API for reading security_group_ids
  lifecycle {
    ignore_changes = [security_group_ids]
  }
}