Hello there! With the Akamai Terraform CLI you can export your existing Akamai properties (content delivery configurations) into a Terraform configuration file in less than a minute.
If you have the Akamai CLI installed, you can run the ‘akamai install terraform’ command to install the Terraform sub-package. Once installed and relying on your valid edgerc file, you can run the export-property command. This command will lookup your property based on the name of the property and export all relevant Akamai objects such as the property, Edge Hostnames, CP Codes and all the relevant rules, criteria and behaviors into Terraform data sources and resources.
With ‘akamai terraform export-property wildcard.securitylevelup.eu’, I was able to easily export my property into Terraform code. You will also have an Terraform import script that will help import all assets into your Terraform state making this the easiest start to start using Terraform for your Akamai properties.
Other Akamai solutions such as Edge DNS or Application Security are also supported with the Akamai CLI but that is a DevTip for another time.
Thanks for reading! If you have any questions about this DevTip, please feel free to let me know in the comments below and I will help you out.