Private Computation: Setup Guide
Step 3: Private Computation Environment Setup (30 Minutes)
- Navigate to
https://<private-computation-infrastructure.instance.url>/hub/ui
You should see the following window:
- Enter the credentials and log in.
- Navigate to the Deployment Menu and click Start deployment.
- A modal will pop up, and the screen will show what you are required to have to complete the deployment.
- Click Continue and go to the next step. You should see a screen that looks like below.
- Enter your business ID, and the Graph API token generated in Step 2. Then click the button Get Meta VPC details. The AWS region and peered Meta-side VPC ID should pop up (as a reference).
Please only click Use advanced settings if advised by a Meta representative. The advanced settings option is described here.
- Click Continue to go to the next screen.
- You should be in the credential screen now as shown below.
- Enter AWS Access Key ID and Secret Access Key, your AWS account ID and click on Continue. These credentials should have admin access to create new components - S3 Buckets, Kinesis, VPC, Subnets, ECS Clusters.
- In Step 4, You can customize the environment. Please fill in the required fields and click Continue.
Environment tag: a string that will be appended to the name or tag of AWS resources to be created. It will be easier for you to identify which AWS resources are created. For ease, we have pre-generated a tag for you (using <month><day>
format), but you can change the tag based on your suitable name.
Data bucket: this is the S3 bucket where data for the computation is stored. If you are redeploying PCS, you have the option to reuse the existing data bucket or create a new bucket for this deployment
Note: If a suitable bucket could not be found, the screen will look as shown below:
- Data Ingestion Settings:
- We have enabled Manual event upload pipeline by default. This is required for using the Events Uploader modal.
- Toggle the checkbox “Consumption of Pixel data” if you don’t wish to send pixel events back to Meta as Conversions API events. If you already have a Conversions API integration in place, or if you do not wish to forward your web pixel events as Conversions API events, you can toggle this button to "off".
Share diagnostic data settings:
- To help clients better troubleshoot issues and improve the product, it’s recommended to opt-in for diagnostic data sharing with Meta. When turned on, diagnostic data sharing will automatically upload logs to Meta within 5 minutes after a calculation run. The diagnostic data will contain: console logs from the study runner (that is, run coordinator), console logs from the worker containers, and logs from the PC data pipeline (Athena, Glue, Kinesis, Lambda). For more details on diagnostic data sharing see Sharing Diagnostic Data with Meta.
Next, review and deploy. This is the final step before actual infrastructure deployment starts, Please review the information for a moment before you click the deploy button.
About 10 minutes later, you should see the following screen confirming the successful deployment.
- VPC peering status: If the VPC peering has been completed, you should see “Completed” status under “VPC peering setup”. If it has failed, you should see the "Failed" status shown below. Please follow the reference here on how to retry a failed VPC peering connection, and how to proceed.
- Automatic diagnostic data sharing status:
- To help clients better troubleshoot issues and improve the product, it is recommended to opt-in for diagnostic data sharing with Meta. Then the diagnostic data will be automatically uploaded to Meta within 5 minutes after a failed run. The diagnostic data will contain: console logs from the study runner (that is, run coordinator), console logs from the worker containers, and logs from the PC data pipeline (Athena, Glue, Kinesis, Lambda). For more details on diagnostic data sharing see Sharing Diagnostic Data with Meta.
- You can click the Edit button to bring up the dialog“Share diagnostic data with Meta”, and enable or disable the automatic diagnostic data sharing. Your selection will apply to the future calculation runs.