Skip to content
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

Fix the destroy of 'aws_security_group' for mysql-primary/replica #1532

Closed
wants to merge 1 commit into from

Conversation

ChrisBAshton
Copy link
Contributor

After #1530, we're hitting an error applying the plan:

Error: Error applying plan:

2 errors occurred:
	* aws_security_group.mysql-replica (destroy): 1 error occurred:
	* aws_security_group.mysql-replica: Error deleting security group: DependencyViolation: resource sg-26a3915d has a dependent object
	status code: 400, request id: 481cb159-77ee-46ef-813a-e82a9b91f754

	* aws_security_group.mysql-primary (destroy): 1 error occurred:
	* aws_security_group.mysql-primary: Error deleting security group: DependencyViolation: resource sg-d1bc8eaa has a dependent object
	status code: 400, request id: c9eee46f-f760-460f-929e-07e600d4c700

Trying a fix outlined in hashicorp/terraform-provider-aws#1671 (comment)

Trello: https://trello.com/c/VWpD8SvY/55-remove-mysql-primary-and-mysql-standby-infrastructure-and-configuration

After #1530, we're hitting an error applying the plan:

```
Error: Error applying plan:

2 errors occurred:
	* aws_security_group.mysql-replica (destroy): 1 error occurred:
	* aws_security_group.mysql-replica: Error deleting security group: DependencyViolation: resource sg-26a3915d has a dependent object
	status code: 400, request id: 481cb159-77ee-46ef-813a-e82a9b91f754

	* aws_security_group.mysql-primary (destroy): 1 error occurred:
	* aws_security_group.mysql-primary: Error deleting security group: DependencyViolation: resource sg-d1bc8eaa has a dependent object
	status code: 400, request id: c9eee46f-f760-460f-929e-07e600d4c700
```

Trying a fix outlined in hashicorp/terraform-provider-aws#1671 (comment)
@ChrisBAshton ChrisBAshton force-pushed the fix-removing-aws_security_group branch from 8a9df05 to 7a100d2 Compare January 28, 2022 13:10
@ChrisBAshton
Copy link
Contributor Author

Turns out this fix didn't work for us - moreover, the problem only seems to affect Integration, so concentrating on Staging and Production for the moment.

@ChrisBAshton ChrisBAshton deleted the fix-removing-aws_security_group branch January 28, 2022 13:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant