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
Documentation about aws_dms_replication_instance seems wrong regarding replication_subnet_group_id #18086
Comments
Hi @Imanuel-Mizrahi , thank you raising this issue. While the
Adding a row with the |
Thank you @anGie44 !!
I was sure that the "terraform plan" will import the replication_subnet_group_id from the "aws_dms_replication_subnet_group" resource, so the "aws_dms_replication_instance" resource will show it as the actual name ("test-dms-replication-subnet-group-tf"), once I run the plan.
Note that replication_subnet_group_id will only be known after apply. Now, if I change the TF to use the replication_subnet_group_id from resource "aws_dms_replication_subnet_group", as follows:
The plan result is as expected, and the data is imported:
I am pretty new with github, should I create a new issue for this...? Appreciate your assistance @anGie44 !! |
Turns out this behavior changes, depends on the terraform version you use. |
Inside the docs of aws_dms_replication_instance, there seems to be a mistake.
For the parameter: "replication_subnet_group_id", the value is:
aws_dms_replication_subnet_group.test.id.
However, inside the docs for "aws_dms_replication_subnet_group", there is no 'id' field at all!
I guess that the value should be: "replication_subnet_group_id" instead, as this one is a required field for aws_dms_replication_subnet_group.
The text was updated successfully, but these errors were encountered: