-
Notifications
You must be signed in to change notification settings - Fork 9.1k
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
[Bug]: Issue with aws_dms_replication_task resource replication_task_settings Logging.CloudWatchLogStream is read-only and cannot be set #36997
Comments
Community NoteVoting for Prioritization
Volunteering to Work on This Issue
|
The parameter Logging.CloudWatchLogGroup is read-only and cannot be set. Didn't work with aws provider 5.46.0 is there any update on this? |
CloudWatchLogGroup and CloudWatchLogStream seem to be dynamic and changed by aws itself. |
We've just hit this too as our settings had these explicitly set to null (presumably we had this due to a copy and paste from the docs here) so yeah think it's just a case of removing these settings entirely. |
Along with the above errors, I am getting error: Worked for me:
|
seems like it was already fixed in v.3.36 #13476 but then can be replicated with 5.10+ |
We apologize for the inconvience caused by this! TL;DRThis change was required due to an AWS change. The fix is to remove Correct Example
resource "aws_dms_replication_task" "test" {
# ... other config ...
replication_task_settings = jsonencode(
{
Logging = {
EnableLogging = true,
LogComponents = [{
Id = "DATA_STRUCTURE",
Severity = "LOGGER_SEVERITY_WARNING"
}]
}
}
)
} Incorrect Example 1
resource "aws_dms_replication_task" "test" {
# ... other config ...
replication_task_settings = jsonencode(
{
Logging = {
EnableLogging = true,
CloudWatchLogGroup = "abcdef"
CloudWatchLogStream = "abcdef"
}
}
)
} Incorrect Example 2
resource "aws_dms_replication_task" "test" {
# ... other config ...
replication_task_settings = jsonencode(
{
Logging = {
EnableLogging = true,
CloudWatchLogGroup = null
CloudWatchLogStream = null
}
}
)
} BackgroundUnfortunately, our hand was forced by a change made by AWS. Previously, |
Warning This issue has been closed, meaning that any additional comments are hard for our team to see. Please assume that the maintainers will not see them. Ongoing conversations amongst community members are welcome, however, the issue will be locked after 30 days. Moving conversations to another venue, such as the AWS Provider forum, is recommended. If you have additional concerns, please open a new issue, referencing this one where needed. |
This functionality has been released in v5.49.0 of the Terraform AWS Provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template. Thank you! |
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. |
Terraform Core Version
v1.4.0
AWS Provider Version
5.46.0
Affected Resource(s)
Expected Behavior
Plan running without any errors
Actual Behavior
The parameter Logging.CloudWatchLogStream is read-only and cannot be set.
Relevant Error/Panic Output Snippet
Terraform Configuration Files
Steps to Reproduce
Debug Output
No response
Panic Output
No response
Important Factoids
The dms task was created ~2 years ago with a different version of terraform provider
terraform plan
runs without any errors for5.45.0
so there is something introduced in5.46.0
References
#36936
Would you like to implement a fix?
None
The text was updated successfully, but these errors were encountered: