terraform-provider-aws
terraform-provider-aws copied to clipboard
[Enhancement]: [FSx] Include options which are used when using delete API
Description
In the documentation, terraform takes all the options which are available in the CreateFileSystemOpenZFS call.
But there are fields which is required when terraform tries to recreate the FSx. Or when a user really want to delete the filesystem. One such field is options where I want to pass DELETE_CHILD_VOLUMES_AND_SNAPSHOTS
but I did not find anything in the documentation which would let me use this configuration.
Can someone please add it?
Affected Resource(s) and/or Data Source(s)
fsx_openzfs_file_system
Potential Terraform Configuration
resource "aws_fsx_openzfs_file_system" "fs" {
...
delete_options {
delete_child_volumes_and_snapshots = true
}
...
}
References
https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/fsx_openzfs_file_system https://docs.aws.amazon.com/fsx/latest/APIReference/API_DeleteFileSystemOpenZFSConfiguration.html
Would you like to implement a fix?
None