Akamai Cloudlet Terraform Module pt2

Mon Jun 16 2025

Akamai Cloudlet Terraform Module pt2

Written by: Cesar

2 min read

akamai

terraform

reuse

IaC

Now that I have tested my new module, it is time to use it with production data. We currently have three different ER cloudlets (staging, beta, production). My plan is to take all the rules in production and use those as my baseline rules and for all absolute redirects, I will update those to use a hostname variable, I will then use a hostname variable in the base module. I will define this variable without a default value, which will force the child clouldlets to pass in that hostname variable. Next I will look for any regex type rules and make sure to also update any expression that use an environment specific hostname and will also use a variable for those.

Then I will need to rebuild the production cloudlet using this new basline and test that no redirects are broken. For the beta cloudlet I will diff the rules in production with beta and any rules that are only in beta I will append to beta via the module, I will do the same for staging rules. After this exercise, we should end up with a very clean implementation where staging, beta have only a few rules because the bulk are being inherited from the base module.