diff --git a/.changelog/35320.txt b/.changelog/35320.txt new file mode 100644 index 000000000000..5357bd13b68d --- /dev/null +++ b/.changelog/35320.txt @@ -0,0 +1,3 @@ +```release-note:enhancement +resource/aws_fsx_openzfs_file_system: Add `skip_final_backup` argument +``` diff --git a/internal/service/datasync/location_fsx_openzfs_file_system_test.go b/internal/service/datasync/location_fsx_openzfs_file_system_test.go index 6ae6e7dccd2b..fdcb190c44f9 100644 --- a/internal/service/datasync/location_fsx_openzfs_file_system_test.go +++ b/internal/service/datasync/location_fsx_openzfs_file_system_test.go @@ -259,6 +259,7 @@ resource "aws_fsx_openzfs_file_system" "test" { subnet_ids = aws_subnet.test[*].id deployment_type = "SINGLE_AZ_1" throughput_capacity = 64 + skip_final_backup = true tags = { Name = %[1]q diff --git a/internal/service/fsx/backup_test.go b/internal/service/fsx/backup_test.go index 1b988a8faddd..e64e7766136b 100644 --- a/internal/service/fsx/backup_test.go +++ b/internal/service/fsx/backup_test.go @@ -383,7 +383,7 @@ resource "aws_fsx_openzfs_file_system" "test" { subnet_ids = [aws_subnet.test1.id] deployment_type = "SINGLE_AZ_1" throughput_capacity = 64 - + skip_final_backup = true tags = { Name = %[1]q diff --git a/internal/service/fsx/openzfs_file_system.go b/internal/service/fsx/openzfs_file_system.go index c02c32af9781..1493173d897b 100644 --- a/internal/service/fsx/openzfs_file_system.go +++ b/internal/service/fsx/openzfs_file_system.go @@ -38,7 +38,11 @@ func ResourceOpenZFSFileSystem() *schema.Resource { DeleteWithoutTimeout: resourceOpenZFSFileSystemDelete, Importer: &schema.ResourceImporter{ - StateContext: schema.ImportStatePassthroughContext, + StateContext: func(ctx context.Context, d *schema.ResourceData, meta interface{}) ([]*schema.ResourceData, error) { + d.Set("skip_final_backup", false) + + return []*schema.ResourceData{d}, nil + }, }, Timeouts: &schema.ResourceTimeout{ @@ -250,6 +254,11 @@ func ResourceOpenZFSFileSystem() *schema.Resource { MaxItems: 50, Elem: &schema.Schema{Type: schema.TypeString}, }, + "skip_final_backup": { + Type: schema.TypeBool, + Optional: true, + Default: false, + }, "storage_capacity": { Type: schema.TypeInt, Optional: true, @@ -621,6 +630,9 @@ func resourceOpenZFSFileSystemDelete(ctx context.Context, d *schema.ResourceData log.Printf("[DEBUG] Deleting FSx for OpenZFS File System: %s", d.Id()) _, err := conn.DeleteFileSystemWithContext(ctx, &fsx.DeleteFileSystemInput{ FileSystemId: aws.String(d.Id()), + OpenZFSConfiguration: &fsx.DeleteFileSystemOpenZFSConfiguration{ + SkipFinalBackup: aws.Bool(d.Get("skip_final_backup").(bool)), + }, }) if tfawserr.ErrCodeEquals(err, fsx.ErrCodeFileSystemNotFound) { diff --git a/internal/service/fsx/openzfs_file_system_test.go b/internal/service/fsx/openzfs_file_system_test.go index f1b64363652b..516c0b5d43d0 100644 --- a/internal/service/fsx/openzfs_file_system_test.go +++ b/internal/service/fsx/openzfs_file_system_test.go @@ -76,6 +76,7 @@ func TestAccFSxOpenZFSFileSystem_basic(t *testing.T) { resource.TestCheckResourceAttrSet(resourceName, "root_volume_id"), resource.TestCheckResourceAttr(resourceName, "route_table_ids.#", "0"), resource.TestCheckResourceAttr(resourceName, "security_group_ids.#", "0"), + resource.TestCheckResourceAttr(resourceName, "skip_final_backup", "false"), resource.TestCheckResourceAttr(resourceName, "storage_capacity", "64"), resource.TestCheckResourceAttr(resourceName, "storage_type", fsx.StorageTypeSsd), resource.TestCheckResourceAttr(resourceName, "subnet_ids.#", "1"), @@ -90,6 +91,9 @@ func TestAccFSxOpenZFSFileSystem_basic(t *testing.T) { ResourceName: resourceName, ImportState: true, ImportStateVerify: true, + ImportStateVerifyIgnore: []string{ + "skip_final_backup", + }, }, }, }) @@ -117,10 +121,13 @@ func TestAccFSxOpenZFSFileSystem_diskIops(t *testing.T) { ), }, { - ResourceName: resourceName, - ImportState: true, - ImportStateVerify: true, - ImportStateVerifyIgnore: []string{"security_group_ids"}, + ResourceName: resourceName, + ImportState: true, + ImportStateVerify: true, + ImportStateVerifyIgnore: []string{ + "security_group_ids", + "skip_final_backup", + }, }, { Config: testAccOpenZFSFileSystemConfig_diskIOPSConfiguration(rName, 200), @@ -204,10 +211,13 @@ func TestAccFSxOpenZFSFileSystem_rootVolume(t *testing.T) { ), }, { - ResourceName: resourceName, - ImportState: true, - ImportStateVerify: true, - ImportStateVerifyIgnore: []string{"security_group_ids"}, + ResourceName: resourceName, + ImportState: true, + ImportStateVerify: true, + ImportStateVerifyIgnore: []string{ + "security_group_ids", + "skip_final_backup", + }, }, { Config: testAccOpenZFSFileSystemConfig_rootVolume2(rName, "ZSTD", "true", 256, 8), @@ -362,10 +372,13 @@ func TestAccFSxOpenZFSFileSystem_securityGroupIDs(t *testing.T) { ), }, { - ResourceName: resourceName, - ImportState: true, - ImportStateVerify: true, - ImportStateVerifyIgnore: []string{"security_group_ids"}, + ResourceName: resourceName, + ImportState: true, + ImportStateVerify: true, + ImportStateVerifyIgnore: []string{ + "security_group_ids", + "skip_final_backup", + }, }, { Config: testAccOpenZFSFileSystemConfig_securityGroupIDs2(rName), @@ -400,10 +413,13 @@ func TestAccFSxOpenZFSFileSystem_tags(t *testing.T) { ), }, { - ResourceName: resourceName, - ImportState: true, - ImportStateVerify: true, - ImportStateVerifyIgnore: []string{"security_group_ids"}, + ResourceName: resourceName, + ImportState: true, + ImportStateVerify: true, + ImportStateVerifyIgnore: []string{ + "security_group_ids", + "skip_final_backup", + }, }, { Config: testAccOpenZFSFileSystemConfig_tags2(rName, "key1", "value1updated", "key2", "value2"), @@ -451,10 +467,13 @@ func TestAccFSxOpenZFSFileSystem_copyTags(t *testing.T) { ), }, { - ResourceName: resourceName, - ImportState: true, - ImportStateVerify: true, - ImportStateVerifyIgnore: []string{"security_group_ids"}, + ResourceName: resourceName, + ImportState: true, + ImportStateVerify: true, + ImportStateVerifyIgnore: []string{ + "security_group_ids", + "skip_final_backup", + }, }, { Config: testAccOpenZFSFileSystemConfig_copyTags(rName, "key1", "value1", "false"), @@ -490,10 +509,13 @@ func TestAccFSxOpenZFSFileSystem_throughput(t *testing.T) { ), }, { - ResourceName: resourceName, - ImportState: true, - ImportStateVerify: true, - ImportStateVerifyIgnore: []string{"security_group_ids"}, + ResourceName: resourceName, + ImportState: true, + ImportStateVerify: true, + ImportStateVerifyIgnore: []string{ + "security_group_ids", + "skip_final_backup", + }, }, { Config: testAccOpenZFSFileSystemConfig_throughput(rName, 128), @@ -527,10 +549,13 @@ func TestAccFSxOpenZFSFileSystem_storageType(t *testing.T) { ), }, { - ResourceName: resourceName, - ImportState: true, - ImportStateVerify: true, - ImportStateVerifyIgnore: []string{"security_group_ids"}, + ResourceName: resourceName, + ImportState: true, + ImportStateVerify: true, + ImportStateVerifyIgnore: []string{ + "security_group_ids", + "skip_final_backup", + }, }, }, }) @@ -556,10 +581,13 @@ func TestAccFSxOpenZFSFileSystem_weeklyMaintenanceStartTime(t *testing.T) { ), }, { - ResourceName: resourceName, - ImportState: true, - ImportStateVerify: true, - ImportStateVerifyIgnore: []string{"security_group_ids"}, + ResourceName: resourceName, + ImportState: true, + ImportStateVerify: true, + ImportStateVerifyIgnore: []string{ + "security_group_ids", + "skip_final_backup", + }, }, { Config: testAccOpenZFSFileSystemConfig_weeklyMaintenanceStartTime(rName, "2:02:02"), @@ -593,10 +621,13 @@ func TestAccFSxOpenZFSFileSystem_automaticBackupRetentionDays(t *testing.T) { ), }, { - ResourceName: resourceName, - ImportState: true, - ImportStateVerify: true, - ImportStateVerifyIgnore: []string{"security_group_ids"}, + ResourceName: resourceName, + ImportState: true, + ImportStateVerify: true, + ImportStateVerifyIgnore: []string{ + "security_group_ids", + "skip_final_backup", + }, }, { Config: testAccOpenZFSFileSystemConfig_automaticBackupRetentionDays(rName, 0), @@ -637,10 +668,13 @@ func TestAccFSxOpenZFSFileSystem_kmsKeyID(t *testing.T) { ), }, { - ResourceName: resourceName, - ImportState: true, - ImportStateVerify: true, - ImportStateVerifyIgnore: []string{"security_group_ids"}, + ResourceName: resourceName, + ImportState: true, + ImportStateVerify: true, + ImportStateVerifyIgnore: []string{ + "security_group_ids", + "skip_final_backup", + }, }, }, }) @@ -666,10 +700,13 @@ func TestAccFSxOpenZFSFileSystem_dailyAutomaticBackupStartTime(t *testing.T) { ), }, { - ResourceName: resourceName, - ImportState: true, - ImportStateVerify: true, - ImportStateVerifyIgnore: []string{"security_group_ids"}, + ResourceName: resourceName, + ImportState: true, + ImportStateVerify: true, + ImportStateVerifyIgnore: []string{ + "security_group_ids", + "skip_final_backup", + }, }, { Config: testAccOpenZFSFileSystemConfig_dailyAutomaticBackupStartTime(rName, "02:02"), @@ -703,10 +740,13 @@ func TestAccFSxOpenZFSFileSystem_throughputCapacity(t *testing.T) { ), }, { - ResourceName: resourceName, - ImportState: true, - ImportStateVerify: true, - ImportStateVerifyIgnore: []string{"security_group_ids"}, + ResourceName: resourceName, + ImportState: true, + ImportStateVerify: true, + ImportStateVerifyIgnore: []string{ + "security_group_ids", + "skip_final_backup", + }, }, { Config: testAccOpenZFSFileSystemConfig_throughputCapacity(rName), @@ -740,10 +780,13 @@ func TestAccFSxOpenZFSFileSystem_storageCapacity(t *testing.T) { ), }, { - ResourceName: resourceName, - ImportState: true, - ImportStateVerify: true, - ImportStateVerifyIgnore: []string{"security_group_ids"}, + ResourceName: resourceName, + ImportState: true, + ImportStateVerify: true, + ImportStateVerifyIgnore: []string{ + "security_group_ids", + "skip_final_backup", + }, }, { Config: testAccOpenZFSFileSystemConfig_storageCapacity(rName), @@ -778,10 +821,13 @@ func TestAccFSxOpenZFSFileSystem_deploymentType(t *testing.T) { ), }, { - ResourceName: resourceName, - ImportState: true, - ImportStateVerify: true, - ImportStateVerifyIgnore: []string{"security_group_ids"}, + ResourceName: resourceName, + ImportState: true, + ImportStateVerify: true, + ImportStateVerifyIgnore: []string{ + "security_group_ids", + "skip_final_backup", + }, }, { Config: testAccOpenZFSFileSystemConfig_deploymentType(rName, "SINGLE_AZ_2", 160), @@ -842,6 +888,7 @@ func TestAccFSxOpenZFSFileSystem_multiAZ(t *testing.T) { resource.TestCheckResourceAttrSet(resourceName, "root_volume_id"), resource.TestCheckResourceAttr(resourceName, "route_table_ids.#", "1"), resource.TestCheckResourceAttr(resourceName, "security_group_ids.#", "0"), + resource.TestCheckResourceAttr(resourceName, "skip_final_backup", "true"), resource.TestCheckResourceAttr(resourceName, "storage_capacity", "64"), resource.TestCheckResourceAttr(resourceName, "storage_type", fsx.StorageTypeSsd), resource.TestCheckResourceAttr(resourceName, "subnet_ids.#", "2"), @@ -858,6 +905,9 @@ func TestAccFSxOpenZFSFileSystem_multiAZ(t *testing.T) { ResourceName: resourceName, ImportState: true, ImportStateVerify: true, + ImportStateVerifyIgnore: []string{ + "skip_final_backup", + }, }, }, }) @@ -887,6 +937,10 @@ func TestAccFSxOpenZFSFileSystem_routeTableIDs(t *testing.T) { ResourceName: resourceName, ImportState: true, ImportStateVerify: true, + ImportStateVerifyIgnore: []string{ + "security_group_ids", + "skip_final_backup", + }, }, { Config: testAccOpenZFSFileSystemConfig_routeTableIDs(rName, 2), @@ -998,6 +1052,7 @@ resource "aws_fsx_openzfs_file_system" "test" { func testAccOpenZFSFileSystemConfig_diskIOPSConfiguration(rName string, iops int) string { return acctest.ConfigCompose(testAccOpenZFSFileSystemConfig_baseSingleAZ(rName), fmt.Sprintf(` resource "aws_fsx_openzfs_file_system" "test" { + skip_final_backup = true storage_capacity = 64 storage_type = "SSD" subnet_ids = aws_subnet.test[*].id @@ -1042,6 +1097,7 @@ resource "aws_security_group" "test1" { resource "aws_fsx_openzfs_file_system" "test" { security_group_ids = [aws_security_group.test1.id] + skip_final_backup = true storage_capacity = 64 subnet_ids = aws_subnet.test[*].id deployment_type = "SINGLE_AZ_1" @@ -1105,6 +1161,7 @@ resource "aws_security_group" "test2" { resource "aws_fsx_openzfs_file_system" "test" { security_group_ids = [aws_security_group.test1.id, aws_security_group.test2.id] + skip_final_backup = true storage_capacity = 64 subnet_ids = aws_subnet.test[*].id deployment_type = "SINGLE_AZ_1" @@ -1121,6 +1178,7 @@ resource "aws_fsx_openzfs_file_system" "test" { func testAccOpenZFSFileSystemConfig_tags1(rName, tagKey1, tagValue1 string) string { return acctest.ConfigCompose(testAccOpenZFSFileSystemConfig_baseSingleAZ(rName), fmt.Sprintf(` resource "aws_fsx_openzfs_file_system" "test" { + skip_final_backup = true storage_capacity = 64 subnet_ids = aws_subnet.test[*].id deployment_type = "SINGLE_AZ_1" @@ -1137,6 +1195,7 @@ resource "aws_fsx_openzfs_file_system" "test" { func testAccOpenZFSFileSystemConfig_tags2(rName, tagKey1, tagValue1, tagKey2, tagValue2 string) string { return acctest.ConfigCompose(testAccOpenZFSFileSystemConfig_baseSingleAZ(rName), fmt.Sprintf(` resource "aws_fsx_openzfs_file_system" "test" { + skip_final_backup = true storage_capacity = 64 subnet_ids = aws_subnet.test[*].id deployment_type = "SINGLE_AZ_1" @@ -1154,6 +1213,7 @@ resource "aws_fsx_openzfs_file_system" "test" { func testAccOpenZFSFileSystemConfig_copyTags(rName, tagKey1, tagValue1, copyTags string) string { return acctest.ConfigCompose(testAccOpenZFSFileSystemConfig_baseSingleAZ(rName), fmt.Sprintf(` resource "aws_fsx_openzfs_file_system" "test" { + skip_final_backup = true storage_capacity = 64 subnet_ids = aws_subnet.test[*].id deployment_type = "SINGLE_AZ_1" @@ -1172,6 +1232,7 @@ resource "aws_fsx_openzfs_file_system" "test" { func testAccOpenZFSFileSystemConfig_weeklyMaintenanceStartTime(rName, weeklyMaintenanceStartTime string) string { return acctest.ConfigCompose(testAccOpenZFSFileSystemConfig_baseSingleAZ(rName), fmt.Sprintf(` resource "aws_fsx_openzfs_file_system" "test" { + skip_final_backup = true storage_capacity = 64 subnet_ids = aws_subnet.test[*].id deployment_type = "SINGLE_AZ_1" @@ -1189,6 +1250,7 @@ resource "aws_fsx_openzfs_file_system" "test" { func testAccOpenZFSFileSystemConfig_dailyAutomaticBackupStartTime(rName, dailyAutomaticBackupStartTime string) string { return acctest.ConfigCompose(testAccOpenZFSFileSystemConfig_baseSingleAZ(rName), fmt.Sprintf(` resource "aws_fsx_openzfs_file_system" "test" { + skip_final_backup = true storage_capacity = 64 subnet_ids = aws_subnet.test[*].id deployment_type = "SINGLE_AZ_1" @@ -1207,6 +1269,7 @@ resource "aws_fsx_openzfs_file_system" "test" { func testAccOpenZFSFileSystemConfig_automaticBackupRetentionDays(rName string, retention int) string { return acctest.ConfigCompose(testAccOpenZFSFileSystemConfig_baseSingleAZ(rName), fmt.Sprintf(` resource "aws_fsx_openzfs_file_system" "test" { + skip_final_backup = true storage_capacity = 64 subnet_ids = aws_subnet.test[*].id deployment_type = "SINGLE_AZ_1" @@ -1229,6 +1292,7 @@ resource "aws_kms_key" "test" { } resource "aws_fsx_openzfs_file_system" "test" { + skip_final_backup = true storage_capacity = 64 subnet_ids = aws_subnet.test[*].id deployment_type = "SINGLE_AZ_1" @@ -1246,6 +1310,7 @@ resource "aws_fsx_openzfs_file_system" "test" { func testAccOpenZFSFileSystemConfig_throughput(rName string, throughput int) string { return acctest.ConfigCompose(testAccOpenZFSFileSystemConfig_baseSingleAZ(rName), fmt.Sprintf(` resource "aws_fsx_openzfs_file_system" "test" { + skip_final_backup = true storage_capacity = 64 subnet_ids = aws_subnet.test[*].id deployment_type = "SINGLE_AZ_1" @@ -1261,6 +1326,7 @@ resource "aws_fsx_openzfs_file_system" "test" { func testAccOpenZFSFileSystemConfig_storageType(rName, storageType string) string { return acctest.ConfigCompose(testAccOpenZFSFileSystemConfig_baseSingleAZ(rName), fmt.Sprintf(` resource "aws_fsx_openzfs_file_system" "test" { + skip_final_backup = true storage_capacity = 64 subnet_ids = aws_subnet.test[*].id deployment_type = "SINGLE_AZ_1" @@ -1277,6 +1343,7 @@ resource "aws_fsx_openzfs_file_system" "test" { func testAccOpenZFSFileSystemConfig_rootVolume1(rName, dataCompression, readOnly string, quotaSize int) string { return acctest.ConfigCompose(testAccOpenZFSFileSystemConfig_baseSingleAZ(rName), fmt.Sprintf(` resource "aws_fsx_openzfs_file_system" "test" { + skip_final_backup = true storage_capacity = 64 subnet_ids = aws_subnet.test[*].id deployment_type = "SINGLE_AZ_1" @@ -1322,6 +1389,7 @@ resource "aws_fsx_openzfs_file_system" "test" { func testAccOpenZFSFileSystemConfig_rootVolume2(rName, dataCompression, readOnly string, quotaSize, recordSizeKiB int) string { return acctest.ConfigCompose(testAccOpenZFSFileSystemConfig_baseSingleAZ(rName), fmt.Sprintf(` resource "aws_fsx_openzfs_file_system" "test" { + skip_final_backup = true storage_capacity = 64 subnet_ids = aws_subnet.test[*].id deployment_type = "SINGLE_AZ_1" @@ -1368,6 +1436,7 @@ resource "aws_fsx_openzfs_file_system" "test" { func testAccOpenZFSFileSystemConfig_rootVolume3Client(rName, dataCompression, readOnly string, userQuota, groupQuota, recordSizeKiB int) string { return acctest.ConfigCompose(testAccOpenZFSFileSystemConfig_baseSingleAZ(rName), fmt.Sprintf(` resource "aws_fsx_openzfs_file_system" "test" { + skip_final_backup = true storage_capacity = 64 subnet_ids = aws_subnet.test[*].id deployment_type = "SINGLE_AZ_1" @@ -1433,6 +1502,7 @@ resource "aws_fsx_openzfs_file_system" "test" { func testAccOpenZFSFileSystemConfig_rootVolume4(rName, dataCompression, readOnly string, userQuota, groupQuota int) string { return acctest.ConfigCompose(testAccOpenZFSFileSystemConfig_baseSingleAZ(rName), fmt.Sprintf(` resource "aws_fsx_openzfs_file_system" "test" { + skip_final_backup = true storage_capacity = 64 subnet_ids = aws_subnet.test[*].id deployment_type = "SINGLE_AZ_1" @@ -1484,6 +1554,7 @@ resource "aws_fsx_openzfs_file_system" "test" { func testAccOpenZFSFileSystemConfig_throughputCapacity(rName string) string { return acctest.ConfigCompose(testAccOpenZFSFileSystemConfig_baseSingleAZ(rName), fmt.Sprintf(` resource "aws_fsx_openzfs_file_system" "test" { + skip_final_backup = true storage_capacity = 64 subnet_ids = aws_subnet.test[*].id deployment_type = "SINGLE_AZ_1" @@ -1499,6 +1570,7 @@ resource "aws_fsx_openzfs_file_system" "test" { func testAccOpenZFSFileSystemConfig_storageCapacity(rName string) string { return acctest.ConfigCompose(testAccOpenZFSFileSystemConfig_baseSingleAZ(rName), fmt.Sprintf(` resource "aws_fsx_openzfs_file_system" "test" { + skip_final_backup = true storage_capacity = 75 subnet_ids = aws_subnet.test[*].id deployment_type = "SINGLE_AZ_1" @@ -1514,6 +1586,7 @@ resource "aws_fsx_openzfs_file_system" "test" { func testAccOpenZFSFileSystemConfig_deploymentType(rName, deploymentType string, throughput int) string { return acctest.ConfigCompose(testAccOpenZFSFileSystemConfig_baseSingleAZ(rName), fmt.Sprintf(` resource "aws_fsx_openzfs_file_system" "test" { + skip_final_backup = true storage_capacity = 64 subnet_ids = aws_subnet.test[*].id deployment_type = %[2]q @@ -1529,6 +1602,7 @@ resource "aws_fsx_openzfs_file_system" "test" { func testAccOpenZFSFileSystemConfig_multiAZ(rName string) string { return acctest.ConfigCompose(testAccOpenZFSFileSystemConfig_baseMultiAZ(rName), fmt.Sprintf(` resource "aws_fsx_openzfs_file_system" "test" { + skip_final_backup = true storage_capacity = 64 subnet_ids = aws_subnet.test[*].id preferred_subnet_id = aws_subnet.test[0].id @@ -1568,6 +1642,7 @@ resource "aws_route_table" "test" { } resource "aws_fsx_openzfs_file_system" "test" { + skip_final_backup = true storage_capacity = 64 subnet_ids = aws_subnet.test[*].id preferred_subnet_id = aws_subnet.test[0].id diff --git a/internal/service/fsx/openzfs_volume_test.go b/internal/service/fsx/openzfs_volume_test.go index cce5ec5cf00d..a193491c6869 100644 --- a/internal/service/fsx/openzfs_volume_test.go +++ b/internal/service/fsx/openzfs_volume_test.go @@ -582,6 +582,7 @@ resource "aws_fsx_openzfs_file_system" "test" { subnet_ids = aws_subnet.test[*].id deployment_type = "SINGLE_AZ_1" throughput_capacity = 64 + skip_final_backup = true tags = { Name = %[1]q diff --git a/website/docs/r/fsx_openzfs_file_system.html.markdown b/website/docs/r/fsx_openzfs_file_system.html.markdown index 2e2dfa8a662d..154181139aa5 100644 --- a/website/docs/r/fsx_openzfs_file_system.html.markdown +++ b/website/docs/r/fsx_openzfs_file_system.html.markdown @@ -42,6 +42,7 @@ This resource supports the following arguments: * `root_volume_configuration` - (Optional) The configuration for the root volume of the file system. All other volumes are children or the root volume. See [Root Volume Configuration](#root-volume-configuration) below. * `route_table_ids` - (Optional) (Multi-AZ only) Specifies the route tables in which Amazon FSx creates the rules for routing traffic to the correct file server. You should specify all virtual private cloud (VPC) route tables associated with the subnets in which your clients are located. By default, Amazon FSx selects your VPC's default route table. * `security_group_ids` - (Optional) 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. +* `skip_final_backup` - (Optional) When enabled, will skip the default final backup taken when the file system is deleted. This configuration must be applied separately before attempting to delete the resource to have the desired behavior. Defaults to `false`. * `storage_type` - (Optional) The filesystem storage type. Only `SSD` is supported. * `tags` - (Optional) A map of tags to assign to the file system. If configured with a provider [`default_tags` configuration block](https://registry.terraform.io/providers/hashicorp/aws/latest/docs#default_tags-configuration-block) present, tags with matching keys will overwrite those defined at the provider-level. * `weekly_maintenance_start_time` - (Optional) The preferred start time (in `d:HH:MM` format) to perform weekly maintenance, in the UTC time zone.