How do I add or modify endpoint settings for AWS DMS endpoints?
I want to add or modify extra connection attributes for an AWS Database Migration Service (AWS DMS) endpoint.
Resolution
Use one of the following methods to add or modify the endpoint settings for your AWS DMS endpoints:
- AWS DMS console
- AWS CloudFormation
- AWS Command Line Interface (AWS CLI)
Note: If you receive errors when you run AWS CLI commands, then see Troubleshoot AWS CLI errors. Also, make sure that you're using the most recent AWS CLI version.
Use the AWS DMS console to create a new endpoint with extra connection attributes
-
Open the AWS DMS console.
-
Select the AWS Region where you want to create the endpoint.
-
In the navigation pane, choose Endpoints.
-
Choose Create endpoint.
-
Choose the Endpoint type, and then enter the Endpoint configuration details.
-
Expand the Endpoint settings section.
-
Choose Add new setting. Use the wizard or JSON editor to provide the name and value for the endpoint.
Example:{ "CsvRowDelimiter": "\\n", "CsvDelimiter": ",", "CompressionType": "GZIP", "DataFormat": "parquet", "EnableStatistics": true, "DatePartitionEnabled": false } -
(Optional) Choose Use endpoint connection attributes. Enter your extra connection attributes (ECAs). Specify each attribute as a name-value pair associated by an equal sign (=). Separate multiple attributes with a semicolon (;) with no additional white space.
Example:compressionType=GZIP;csvDelimiter=,;csvRowDelimiter=\n;datePartitionEnabled=false; -
Expand the Test endpoint connection section.
-
Choose your Replication instance.
-
Choose Run test.
-
Choose Create endpoint.
Use the AWS DMS console to add endpoint settings or ECAs to an existing endpoint
- Open the AWS DMS console.
- Select the Region that the endpoint is in.
- From the navigation pane, choose Endpoints, and then select the endpoint that you want to modify.
- Choose Actions, and then choose Modify.
- Expand the Endpoint settings section, and then use the wizard or JSON editor to enter the endpoint setting Key-Values.
- Choose Save.
- Select the endpoint again.
- Choose Connection tab, and then choose Test connections.
- Select your Replication instance, and then choose Run test.
Use the AWS CLI to create a new endpoint with custom endpoint settings
-
Install and configure the AWS CLI with the Region where you want to create the endpoint. For example, set your Region with the --region parameter.
-
Run the following create-endpoint command:
aws dms create-endpoint --endpoint-identifier VALUE --endpoint-type VALUE --engine-name VALUE --s3-settings ServiceAccessRoleArn=arn:aws:iam::1111111111111:role/ROLE-NAME,BucketName=BUCKET-NAME,CompressionType=GZIP,MaxFileSize=32000 -
Run the following test-connection command to test the connectivity of the new endpoint with the replication instance:
aws dms test-connection \ --replication-instance-arn arn:aws:dms:us-east-1:123456789012:rep:EXAMPLE-REPLICATION-INSTANCE \ --endpoint-arn arn:aws:dms:us-east-1:123456789012:endpoint:EXAMPLE-ENDPOINTNote: In the preceding commands, replace VALUE, ROLE-NAME, and BUCKET-NAME with your values. Replace EXAMPLE-REPLICATION-INSTANCE with the Amazon Resource Name (ARN) of your replication instance and EXAMPLE-ENDPOINT with the ARN of your endpoint.
Use the AWS CLI to add endpoint settings to an existing endpoint
-
Install and configure the AWS CLI with the Region where you want to modify the endpoint. For example, set your Region with the --region parameter.
-
Run the following modify-endpoint command:
aws dms modify-endpoint --endpoint-arn VALUE --s3-settings Rfc4180=true,AddColumnName=true,CdcInsertsOnly=true,MaxFileSize=64000 -
Run the following test-connection command to test the connectivity of the modified endpoint with the replication instance:
aws dms test-connection \ --replication-instance-arn arn:aws:dms:us-east-1:123456789012:rep:EXAMPLE-REPLICATION-INSTANCE \ --endpoint-arn arn:aws:dms:us-east-1:123456789012:endpoint:EXAMPLE-ENDPOINTNote: Replace EXAMPLE-REPLICATION-INSTANCE with the ARN of your replication instance and EXAMPLE-ENDPOINT with the ARN of your endpoint.
Use CloudFormation to create a new endpoint with custom endpoint settings
-
Open the CloudFormation console.
-
Select the Region where you want to create the endpoint.
-
Choose Create stack, and then choose With new resources (standard).
-
Select Choose an existing template.
-
Under Specify template, choose Upload a template file. Use the following example template:
AWSTemplateFormatVersion: 2010-09-09 Description: "S3 target Endpoint" Resources: BasicS3TargetEndpoint: Type: AWS::DMS::Endpoint Properties: EndpointIdentifier: s3-Target-endpoint EndpointType: target EngineName: s3 S3Settings: ServiceAccessRoleArn: arn:aws:iam::111122223333:role/ROLE-NAME BucketName: BUCKET-NAME AddColumnName: true CdcInsertsOnly: true MaxFileSize: 32000Note: Replace 111122223333 with your AWS account ID and ROLE-NAME with your IAM role name that has access to the Amazon Simple Storage Service (Amazon S3) bucket.
-
Choose Next.
-
Enter a name for the stack.
-
Assign an AWS Identity and Access Management (IAM) role with the required permissions to create DMS resources.
-
Choose Next.
-
Choose Submit.
Use CloudFormation to add endpoint settings to an existing endpoint
-
Open the CloudFormation console.
-
Select the Region where you want to create the endpoint.
-
Select an existing stack.
-
Choose Update stack, and then choose Make a direct update.
-
On the Update stack page, choose Replace existing template.
-
Under Specify template, choose Upload a template file. Use the following example template:
AWSTemplateFormatVersion: 2010-09-09 Description: "S3 target Endpoint" Resources: S3TargetEndpoint: Type: AWS::DMS::Endpoint Properties: EndpointIdentifier: s3-Target-endpoint EndpointType: target EngineName: s3 S3Settings: ServiceAccessRoleArn: arn:aws:iam::111122223333:role/ROLE-NAME BucketName: BUCKET-NAME AddColumnName: true CdcInsertsAndUpdates: true MaxFileSize: 64000Note: Replace 111122223333 with your account ID and ROLE-NAME with your IAM role name that has access to the Amazon S3 bucket.
-
Choose Next.
-
On the Specify stack details page, choose Next.
-
(Optional) On the Configure stack options page, under Tags, add tags. Under Permissions, select the IAM role that you want to make updates on your behalf. Then, choose Next.
-
Choose Submit.
Use legacy ECAs to create or modify an endpoint
You can use the --extra-connection-attributes option to create and modify the endpoint. Specify each attribute as a name-value pair associated by an equal sign (=). Separate multiple attributes with a semicolon (;) with no additional white space.
Example:
aws dms create-endpoint \ --endpoint-identifier YOUR-VALUE \ --endpoint-type target \ --engine-name s3 \ --service-access-role-arn arn:aws:iam::YOUR-ACCOUNT-ID:role/YOUR-ROLE-NAME \ --extra-connection-attributes "bucketName=YOUR-BUCKET-NAME;encryptionMode=SSE_KMS;maxFileSize=512" aws dms modify-endpoint \ --endpoint-arn arn:aws:dms:us-east-1:123456789012:endpoint:EXAMPLE \ --extra-connection-attributes "encryptionMode=SSE_KMS;maxFileSize=512"
Related information
- Language
- English

This article was reviewed and updated on 2026-07-21.
Relevant content
asked 3 years ago
AWS OFFICIALUpdated 3 years ago