I recently tested and created a UI with Cloudfront, S3 and WAF.
I made some changes to the Cloudfront module and hardcoded the created WAF ACL name so that each time I perform terraform apply
it will be using the WAF I created. Then I removed the WAF module from my code.
When I try to do another terraform apply
it says that the WAF will be destroyed. I assume its because I removed the WAF module.
Is there a way where I can perform a terraform plan
/apply
and skip destroying the WAF which was recently deployed from previous deployments?