Skip to content

Commit 73b2193

Browse files
authored
Merge pull request #306 from fingerprintjs/readme/add-link-to-terraform
chore: terraform link in readme.md, custom hosts in contributing.md
2 parents fa659e6 + 3ee6213 commit 73b2193

File tree

2 files changed

+17
-1
lines changed

2 files changed

+17
-1
lines changed

CONTRIBUTING.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,4 +61,16 @@ The integration is automatically released on every push to the main branch if th
6161

6262
### How to keep your integration up-to-date
6363

64-
CloudFront Integration by Fingerprint always uses the latest stable version for the customers and keeps it up-to-date by using the management Lambda function created during the installation.
64+
CloudFront Integration by Fingerprint always uses the latest stable version for the customers and keeps it up-to-date by using the management Lambda function created during the installation.
65+
66+
### Testing against custom CDN and API hosts
67+
68+
During testing, you might need the integration to proxy requests to the CDN and API hosts of your choosing (for example, the staging environment) instead of the production Fingerprint CDN and API.
69+
70+
To achieve this, you can add your custom *host* (not URL) values to the **AWS Secret** associated with the proxy integration:
71+
72+
```
73+
FPJS_CDN_URL: your.cdn.net
74+
FPJS_INGRESS_BASE_HOST: your.api.net
75+
```
76+

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,10 @@ To set up CloudFront integration, you need to:
4848

4949
See [CloudFront Proxy Integration guide](https://dev.fingerprint.com/docs/cloudfront-proxy-integration-v2) in our documentation for step-by-step instructions. If you have any questions, reach out to our [support team](https://fingerprint.com/support/).
5050

51+
### Deployment using Terraform
52+
53+
If you prefer to deploy the integration using Terraform, see the [Terraform module repository](https://github.com/fingerprintjs/terraform-aws-fingerprint-cloudfront-proxy-integration) and the related [Terraform guide](https://dev.fingerprint.com/docs/aws-cloudfront-integration-via-terraform).
54+
5155
## License
5256

5357
This project is licensed under the MIT license. See the [LICENSE](https://github.com/fingerprintjs/fingerprint-pro-cloudfront-integration/blob/main/LICENSE) file for more info.

0 commit comments

Comments
 (0)