-
Notifications
You must be signed in to change notification settings - Fork 12
/
seller.tf
130 lines (123 loc) · 8.03 KB
/
seller.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
/**
* Copyright 2023 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
locals {
region = "" # Example: ["us-central1", "us-west1"]
environment = "" # Must be <= 3 characters. Example: "abc"
}
provider "aws" {
region = local.region
}
module "seller" {
source = "../../../modules/seller"
environment = local.environment
region = local.region
enclave_debug_mode = false # Example: false
root_domain = "" # Example: "seller-frontend.com"
root_domain_zone_id = "" # Example: "Z010286721PKVM00UYU50"
certificate_arn = "" # Example: "arn:aws:acm:us-west-1:574738241422:certificate/b8b0a33f-0821-1111-8464-bc8da130a7fe"
operator = "" # Example: "seller1"
sfe_instance_ami_id = "" # Example: "ami-0ff8ad2fa8512a078"
auction_instance_ami_id = "" # Example: "ami-0ea85f493f16aba3c"
sfe_instance_type = "" # Example: "c6i.2xlarge"
auction_instance_type = "" # Example: "c6i.2xlarge"
sfe_enclave_cpu_count = 6 # Example: 6
sfe_enclave_memory_mib = 12000 # Example: 12000
auction_enclave_cpu_count = 6 # Example: 6
auction_enclave_memory_mib = 12000 # Example: 12000
sfe_autoscaling_desired_capacity = 3 # Example: 3
sfe_autoscaling_max_size = 5 # Example: 5
sfe_autoscaling_min_size = 1 # Example: 1
auction_autoscaling_desired_capacity = 3 # Example: 3
auction_autoscaling_max_size = 5 # Example: 5
auction_autoscaling_min_size = 1 # Example: 1
runtime_flags = {
AUCTION_PORT = "50051" # Do not change unless you are modifying the default GCP architecture.
SELLER_FRONTEND_PORT = "50051" # Do not change unless you are modifying the default GCP architecture.
SFE_INGRESS_TLS = "false" # Do not change unless you are modifying the default GCP architecture.
BUYER_EGRESS_TLS = "true" # Do not change unless you are modifying the default GCP architecture.
AUCTION_EGRESS_TLS = "true" # Do not change unless you are modifying the default GCP architecture.
COLLECTOR_ENDPOINT = "127.0.0.1:4317" # Do not change unless you are modifying the default GCP architecture.
ENABLE_AUCTION_SERVICE_BENCHMARK = "" # Example: "false"
GET_BID_RPC_TIMEOUT_MS = "" # Example: "60000"
KEY_VALUE_SIGNALS_FETCH_RPC_TIMEOUT_MS = "" # Example: "60000"
SCORE_ADS_RPC_TIMEOUT_MS = "" # Example: "60000"
SELLER_ORIGIN_DOMAIN = "" # Example: "https://securepubads.g.doubleclick.net"
AUCTION_SERVER_HOST = "" # Example: "dns:///auction.seller-frontend.com:443"
KEY_VALUE_SIGNALS_HOST = "" # Example: "https://pubads.g.doubleclick.net/td/sts"
BUYER_SERVER_HOSTS = "" # Example: "{ \"https://bid1.com\": { \"url\": \"dns:///bidding1.com:443\", \"cloudPlatform\": \"AWS\" } }"
SELLER_CLOUD_PLATFORMS_MAP = "" # Example: "{ \"https://partner-seller1.com\": "GCP", \"https://partner-seller2.com\": "AWS"}"
ENABLE_SELLER_FRONTEND_BENCHMARKING = "" # Example: "false"
ENABLE_AUCTION_COMPRESSION = "" # Example: "false"
ENABLE_BUYER_COMPRESSION = "" # Example: "false"
ENABLE_PROTECTED_APP_SIGNALS = "" # Example: "false"
ENABLE_PROTECTED_AUDIENCE = "" # Example: "true"
PS_VERBOSITY = "" # Example: "10"
CREATE_NEW_EVENT_ENGINE = "" # Example: "false"
TELEMETRY_CONFIG = "" # Example: "mode: EXPERIMENT"
ENABLE_OTEL_BASED_LOGGING = "" # Example: "true"
CONSENTED_DEBUG_TOKEN = "" # Example: "123456"
TEST_MODE = "" # Example: "false"
SELLER_CODE_FETCH_CONFIG = "" # Example:
# "{
# "fetchMode": 0,
# "auctionJsPath": "",
# "auctionJsUrl": "https://example.com/scoreAd.js",
# "urlFetchPeriodMs": 13000000,
# "urlFetchTimeoutMs": 30000,
# "enableSellerDebugUrlGeneration": true,
# This flag should only be set if console.logs from the AdTech code(Ex:scoreAd(), reportResult(), reportWin())
# execution need to be exported as VLOG.
# Note: turning on this flag will lead to higher memory consumption for AdTech code execution
# and additional latency for parsing the logs.
# "enableAdtechCodeLogging": false,
# "enableReportResultUrlGeneration": true,
# "enableReportWinUrlGeneration": true,
# "buyerReportWinJsUrls": {"https://buyerA_origin.com":"https://buyerA.com/generateBid.js",
# "https://buyerB_origin.com":"https://buyerB.com/generateBid.js",
# "https://buyerC_origin.com":"https://buyerC.com/generateBid.js"},
# "protectedAppSignalsBuyerReportWinJsUrls": {"https://buyerA_origin.com":"https://buyerA.com/generateBid.js"}
# }"
JS_NUM_WORKERS = "" # Example: "48" Must be <=vCPUs in auction_enclave_cpu_count.
JS_WORKER_QUEUE_LEN = "" # Example: "100".
ROMA_TIMEOUT_MS = "" # Example: "10000"
ENABLE_REPORT_WIN_INPUT_NOISING = "" # Example: "true"
# Reach out to the Privacy Sandbox B&A team to enroll with Coordinators and update the following flag values.
# More information on enrollment can be found here: https://github.com/privacysandbox/fledge-docs/blob/main/bidding_auction_services_api.md#enroll-with-coordinators
# Coordinator-based attestation flags:
PUBLIC_KEY_ENDPOINT = "" # Example: "https://test.cloudfront.net/v1alpha/publicKeys"
SFE_PUBLIC_KEYS_ENDPOINTS = "" # Example:
# "{
# "GCP": "https://sample-public-key-service-0.cloudfront.net/v1alpha/publicKeys"
# "AWS": "https://sample-public-key-service-1.cloudfront.net/v1alpha/publicKeys"
# }"
PRIMARY_COORDINATOR_PRIVATE_KEY_ENDPOINT = "" # Example: "https://test.execute-api.us-east-1.amazonaws.com/stage/v1alpha/encryptionKeys"
SECONDARY_COORDINATOR_PRIVATE_KEY_ENDPOINT = "" # Example: "https://test.execute-api.us-east-1.amazonaws.com/stage/v1alpha/encryptionKeys"
PRIMARY_COORDINATOR_ACCOUNT_IDENTITY = "" # Example: "arn:aws:iam::574738241422:role/mp-prim-ba_574738241422_coordinator_assume_role"
SECONDARY_COORDINATOR_ACCOUNT_IDENTITY = "" # Example: "arn:aws:iam::574738241422:role/mp-sec-ba_574738241422_coordinator_assume_role"
PRIMARY_COORDINATOR_REGION = "" # Example: "us-east-1"
SECONDARY_COORDINATOR_REGION = "" # Example: "us-east-1"
PRIVATE_KEY_CACHE_TTL_SECONDS = "" # Example: "3974400" (46 days)
KEY_REFRESH_FLOW_RUN_FREQUENCY_SECONDS = "" # Example: "10800"
MAX_ALLOWED_SIZE_DEBUG_URL_BYTES = "" # Example: "65536"
MAX_ALLOWED_SIZE_ALL_DEBUG_URLS_KB = "" # Example: "3000"
# TCMalloc related config parameters.
# See: https://github.com/google/tcmalloc/blob/master/docs/tuning.md
AUCTION_TCMALLOC_BACKGROUND_RELEASE_RATE_BYTES_PER_SECOND = "4096"
AUCTION_TCMALLOC_MAX_TOTAL_THREAD_CACHE_BYTES = "10737418240"
SFE_TCMALLOC_BACKGROUND_RELEASE_RATE_BYTES_PER_SECOND = "4096"
SFE_TCMALLOC_MAX_TOTAL_THREAD_CACHE_BYTES = "10737418240"
}
}