-
Notifications
You must be signed in to change notification settings - Fork 9.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DMS Endpoint: Apply extra_connection_attributes to all engine types in DMS #5607
Conversation
Hi. Do we have any updates on this by any chance? At present, any non-default |
I have also come across this issue recently, currently the only way to get the |
aws/resource_aws_dms_endpoint.go
Outdated
@@ -279,14 +279,14 @@ func resourceAwsDmsEndpointCreate(d *schema.ResourceData, meta interface{}) erro | |||
if v, ok := d.GetOk("database_name"); ok { | |||
request.DatabaseName = aws.String(v.(string)) | |||
} | |||
if v, ok := d.GetOk("extra_connection_attributes"); ok { | |||
request.ExtraConnectionAttributes = aws.String(v.(string)) | |||
} | |||
if v, ok := d.GetOk("kms_key_arn"); ok { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
While it's not related to extra_connection_attributes
I also think the kms_key_arn
is in the wrong place here.
Its handled in the state outside of the default block and the docs describe this as the encryption key used by the replication instance and connection information so it shouldn't be service specific.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for pointing that out. I'll take a closer look at it soon.
b933577
to
36b9617
Compare
@bflad @stephencoe Rebased and placed two commits on top. Please review/test. |
I have just been caught out by this. I had set extra_connection_attributes = "addColumnName=true" Set this about a month ago, about to write a lambda to leverage the column headers and they aren't to be found in the S3 files. Any update on when this will be merged? |
I have the same issue. |
I ran into the same issue will this be something mergeable in Terraform 12? |
Same issue 😪. I'm wondering since this has been open for so long, have people found a workaround? I'm wanting to set |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thanks! |
Changes proposed in this pull request:
s3_settings
fors3
andmongodb_settings
formongodb
to name a few. However, there exist engine-specific attributes that can only be changed viaextra_connection_attributes
. While this appears to be an inconsistent behaviour of the corresponding AWS API, we have to makeextra_connection_attributes
available to all engine types. One example isaddColumnName
fors3
. It's currently not being handled unders3_settings
hence must be specified inextra_connection_attributes
if you want a non-default behaviour (in this case,false
).Output from acceptance testing: