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 a path variable for the integration (
FPJS_INTEGRATION_PATH)
Step 3: Add variable blocks to your rules template
Specify a randomized path value and the Fingerprint proxy secret you have created in Step 1:
fpjs_integration_pathfpjs_proxy_secret
akamai_property_rules_template data block in your Terraform configuration file and add the following 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.
Note:
fpjs_agent_path and fpjs_result_path are required, but their values no longer matterfpjs_agent_path and fpjs_result_path only affect APIv3 routing. Because this integration supports both APIv3 and APIv4, both variables are still required even if you only use APIv4, terraform fails with a missing-key error if either is absent.On APIv4 their values are arbitrary; you can leave them set to "deprecated-agent" and "deprecated-result" as shown above.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 path and the proxy secret) according to your needs.
Step 6: Apply Terraform changes
- Run
terraform planto review your changes. - Run
terraform apply.