-
Notifications
You must be signed in to change notification settings - Fork 9.6k
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
Amazon lowercases db_subnet_group_name #2320
Comments
I remember having very similar issues in some order RDS resources.
I don't think Terraform should be as magic as AWS API 😃 and do things user may not expect. |
While I agree that terraform shouldn't do magic I do think it should behave As I see it the problem with just doing validation is that the instances
IMPORTANT NOTICE: MahiFX Limited (MahiFX), (company no. 2446590) is For more information about MahiFX Limited see mahifx.com. |
I'm not sure I get that, why should instances get even touched, when validation prevents any further action if the name isn't lowercase? |
Sorry just flown from NZ to UK not thinking clearly enough. As long as the
IMPORTANT NOTICE: MahiFX Limited (MahiFX), (company no. 2446590) is For more information about MahiFX Limited see mahifx.com. |
@SamBarker No worries 😃 it happens to me from time to time too. |
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 have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |
I'm trying to work out why terraform continually destroys and adds my DB instances. I finally spotted that its because I'm using db_subnet_group_name, which forces a new resource.
I've marked the DB instances as depending on the aws_db_subnet_group, but the aws_db_subnet_group is not being marked for change.
Looking at the RDS instance in the AWS console Amazon have lowercased the group name! My config looks like:
Additionally it would be good if the aws_db_subnet_group exposed its name as an output.
I'm going to update my config to use lowecase names but I think terraform should lowercase the group name automatically
The text was updated successfully, but these errors were encountered: