Caveats in Terraforming WAF V2 for CloudFront
If you want to add a WAF V2 (aws_wafv2_web_acl
) to a CloudFront distribution (aws_cloudfront_distribution
) using Terraform, there are a few caveats:
Disclaimer: This content reflects my personal opinions, not those of any organizations I am or have been affiliated with. Code samples are provided for illustration purposes only, use with caution and test thoroughly before deployment.
If you want to add a WAF V2 (aws_wafv2_web_acl
) to a CloudFront distribution (aws_cloudfront_distribution
) using Terraform, there are a few caveats:
Run this command to get the usage of each index:
(continue reading...)While looking for the definition of HTTP Status Codes, I realize that RFC2616 is deprecated. You should look for RFC7231 instead.
(continue reading...)You might have noticed that I didn’t update this blog frequently in the past year. It’s not because I’m lazy, but I focused all my creative energy on writing this book: Practical Rust Projects. The book is now available on Apress, Amazon and O’Reilly. In this post, I’ll share some of the lessons I learned in writing this book.
(continue reading...)In theory, Terraform is capable of figuring out the dependency between AWS resources and make updates in the correct order. However, AWS security groups often become a source of trouble if you don’t understand how Terraform handles it. If you are having issues modifying the security group because they are used by other resources, here are some ways you can mitigate that.
(continue reading...)