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

CloudWAF Certificate renewal flow causing automation errors #194

Open
bmgreenwood opened this issue Jul 25, 2023 · 0 comments
Open

CloudWAF Certificate renewal flow causing automation errors #194

bmgreenwood opened this issue Jul 25, 2023 · 0 comments

Comments

@bmgreenwood
Copy link

As the title states, we are using terraform (with terragrunt) to automate our infrastructure pipelines and remove all manual interventions. Everything gets checked in, and pushed through with service accounts.

One area we are looking to automate is our use of Cloud WAF on some of our products.

For the sites which use Cloud WAF we are having issues where the certificate needs to be renewed. When using the UI, you create a cert, then updated the certificate used on each route of the Cloud WAF Instance.

When trying to implement this with the terraform provider, you get stuck in a bad state. The tf state file contains the GUID to the certificate that was previously created. When we renew our certificate (it's handled in another module) we then call to update the existing certificate in place. This causes an error because it is in use by the routes in the WAF instance.

The only resulting solution is to drop the routes manually, update the cert, and then re-add the routes.

Is it possible to allow updates to expired certificates?

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

No branches or pull requests

1 participant