You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
## Main example for Fingerprint Fastly Compute Proxy Integration
2
+
3
+
This project is an example of how to create a Fastly Compute service for the [Fingerprint Fastly Compute proxy integration Terraform module](https://github.com/fingerprintjs/terraform-fastly-fingerprint-compute-proxy-integration).
4
+
Learn more in the [Fastly Compute Proxy Terraform installation guide](https://dev.fingerprint.com/docs/deploy-fastly-compute-using-terraform).
5
+
6
+
### Running the example
7
+
8
+
To quickly run the example for testing purposes, you can:
9
+
10
+
1. Copy the [terraform.tfvars.example](./terraform.tfvars.example) file into a new `terraform.tfvars` file and replace the values with your own. The variables are defined and described in the [variables.tf](./variables.tf) file.
11
+
2. Copy your Fastly API token
12
+
3. Create an empty compute service on Fastly and copy its ID.
13
+
4. Run `terraform init`.
14
+
5. Run `terraform apply -target=module.fingerprint_fastly_compute_integration.module.compute_asset`
15
+
6. Run `terraform import module.fingerprint_fastly_compute_integration.fastly_service_compute.fingerprint_integration "<your empty fastly compute service id>"`
16
+
7. Run `terraform plan`.
17
+
8. Run `terraform apply`.
18
+
19
+
### Using in production
20
+
21
+
This is a simplified example. Use it as a reference but make sure to **adjust the code to your needs and security practices** before deploying it to production environments.
0 commit comments