You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm provisioning a postgres database from a snapshot in EC2 classic, but it never applies the security group changes on it. By default, after the database comes up it is set to the default security group, but I want it to be in the integration security group. Here is the configuration I use:
However after applying, when I perform a terraform plan:
Refreshing Terraform state prior to plan...
aws_db_instance.delphius: Refreshing state... (ID: integration-fe200a-delphius-2016-02-02-2135)
The Terraform execution plan has been generated and is shown below.
Resources are shown in alphabetical order for quick scanning. Green resources
will be created (or destroyed and then created if an existing resource
exists), yellow resources are being changed in-place, and red resources
will be destroyed.
Note: You didn't specify an "-out" parameter to save this plan, so when
"apply" is called, Terraform can't guarantee this is what will execute.
~ aws_db_instance.delphius
backup_retention_period: "7" => "1"
security_group_names.3814588639: "default" => ""
security_group_names.4259933595: "" => "integration"
Plan: 0 to add, 1 to change, 0 to destroy.
You can see that it still needs to change the security groups and the backup retention period.
However, performing another terraform apply and then terraform plan, it will still show that the security groups have not changed to their desired state:
Refreshing Terraform state prior to plan...
aws_db_instance.delphius: Refreshing state... (ID: integration-fe200a-delphius-2016-02-02-2135)
The Terraform execution plan has been generated and is shown below.
Resources are shown in alphabetical order for quick scanning. Green resources
will be created (or destroyed and then created if an existing resource
exists), yellow resources are being changed in-place, and red resources
will be destroyed.
Note: You didn't specify an "-out" parameter to save this plan, so when
"apply" is called, Terraform can't guarantee this is what will execute.
~ aws_db_instance.delphius
security_group_names.3814588639: "default" => ""
security_group_names.4259933595: "" => "integration"
Plan: 0 to add, 1 to change, 0 to destroy.
No matter how many times I do terraform apply , it never changes the security group.
I'm using terraform 0.6.11 on Ubuntu 15.10.
The text was updated successfully, but these errors were encountered:
it seems that requestUpdate = true can not occur for changes of security_group_names with out having a change in vpc_security_group_ids. I'm not sure why that is the case.
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.
ghost
locked and limited conversation to collaborators
Apr 28, 2020
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I'm provisioning a postgres database from a snapshot in EC2 classic, but it never applies the security group changes on it. By default, after the database comes up it is set to the
default
security group, but I want it to be in theintegration
security group. Here is the configuration I use:terraform plan
terraform apply
However after applying, when I perform a terraform plan:
You can see that it still needs to change the security groups and the backup retention period.
However, performing another terraform apply and then terraform plan, it will still show that the security groups have not changed to their desired state:
No matter how many times I do
terraform apply
, it never changes the security group.I'm using terraform 0.6.11 on Ubuntu 15.10.
The text was updated successfully, but these errors were encountered: