Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
resource/aws_datasync_task: Remove BEST_EFFORT value from posix_permi…
…ssions argument validation and documentation Reference: https://github.com/aws/aws-sdk-go/pull/2962/files#diff-75343d273fb0174cc5d3bc82469018b5L6419 Reference: #10955 The upstream AWS Go SDK in v1.25.39 update removes the available SDK constant. In testing the behavior against the current SDK which still has this constant and when `BEST_EFFORT` is provided as a value to the DataSync API, the API returns a validation error: ``` --- FAIL: TestAccAWSDataSyncTask_DefaultSyncOptions_PosixPermissions (233.01s) testing.go:635: Step 0 error: errors during apply: Error: error creating DataSync Task: ValidationException: 1 validation error detected: Value 'BEST_EFFORT' at 'options.posixPermissions' failed to satisfy constraint: Member must satisfy enum value set: [PRESERVE, NONE] status code: 400, request id: 1b101b77-f03f-4be2-b018-e2edf4088536 ``` This API behavior seems to indicate that even if existing Terraform configurations might contain this value, they are invalid now according to the API and must be updated regardless. If for some reason this old value is still valid for previously existing tasks, we can hardcode the `"BEST_EFFORT"` string into the validation if necessary.
- Loading branch information