Add support for S3 as a DMS target endpoint #4447
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This is a port of #1685 by @altay13 with suggested changes from the pull request. (The PR hasn't been active lately and had many conflicts to resolve, so I decided to work on it. Hope I'm not stepping on someone's toes.)
Notes:
bucket_name
andbucket_folder
were removed from the top-level attribute namespace. They are now available unders3_settings
. This is consistent with how the MongoDB endpoint is implemented which follows the convention as seen in the output ofaws dms create-endpoint --generate-cli-skeleton
(see below).service_access_role
attribute shouldn't be reused as there is nowservice_access_role_arn
unders3_settings
. I suggest movingservice_access_role
todynamodb_settings
(currently missing) in the future and remove it from the top-level namespace.dmsEndpointTargetUpdateConfig
anddmsEndpointTargetUpdateConfigUpdate
) were removed from the test suite, to keep each endpoint test completely independent of each other despite some repetitions in the config strings.dms.S3Settings
provides fields for target endpoint only. See https://github.com/microamp/terraform-provider-aws/blob/dms-target-endpoint-s3/vendor/github.com/aws/aws-sdk-go/service/databasemigrationservice/api.go#L10558-L10587 for more details.extra_connection_attributes
, but that has not been tested as part of this work.Thanks, please let me know if I missed anything.