Before you start: Read the general Akamai guideThis document only covers deploying the Fingerprint Akamai proxy integration using Terraform. It assumes you have already read the general Akamai guide and completed the following steps:
- Step 1: You have issued a proxy secret in the Fingerprint Dashboard (
FPJS_PROXY_SECRET). - Step 2: You have defined the path variables for the integration (
FPJS_INTEGRATION_PATH,FPJS_AGENT_PATH,FPJS_RESULT_PATH) If you want to use Akamai Property Manager API instead of Terraform to install the integration, see Install Akamai proxy integration using Akamai Property Manager API.
Step 3: Add variable blocks to your rules template
Specify three randomized path values and the Fingerprint proxy secret you have created in Step 1:
fpjs_integration_pathfpjs_agent_pathfpjs_result_pathfpjs_proxy_secret
akamai_property_rules_template data block in your Terraform configuration file and add the four variables:
main.tf
Note: Proxy secret requiredProxied identification requests without a valid proxy secret will result in an authentication error and not receive identification results.
Step 4: Add Fingerprint property rules
- Go to the integration’s latest releases on GitHub.
- Download the
terraform/fingerprint-property-rules.jsonfile. - Add it to your Terraform project’s
rulesdirectory asfingerprint-property-rules.json. - Reference the file in
rules/main.jsonlike below:
rules/main.json
Step 5: Add Fingerprint property variables
- Go to the integration’s latest releases on GitHub.
- Download the
terraform/fingerprint-property-variables.jsonfile. - Add it to your Terraform project’s
rulesdirectory asfingerprint-property-variables.json. - Reference the file in
rules/main.json:
- If you don’t have a
variablesfield, add thevariables: "#include:fingerprint-property-variables.json"line. - If you already have a
variablesfield, mergefingerprint-property-variables.jsonwith your existing variables file.
rules/main.json
Property variables vs Terraform variable blocksNote that the Akamai property variables added in Step 5 are different from the Terraform variable blocks added in Step 3.
- Property variables are used by property rules and you cannot change them.
- You can change the variable block values (randomized paths and the proxy secret) according to your needs.
Step 6: Apply Terraform changes
- Run
terraform planto review your changes. - Run
terraform apply.