When you create an SFTP server, you can not configure “Optimized Directories”, see (g) here: Create an SFTP-enabled server - AWS Transfer Family
This is supported in the API here: S3StorageOptions - AWS Transfer Family
I believe this option was added in Nov 2023 but not 100% sure. I am curious if the terraform-provider-aws currently support enabling optimized directories when creating an SFTP server in AWS Transfer Family. The default is false in AWS. I couldn’t find anything in the aws_transfer _server resource: Terraform Registry
Best,
Reik