Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
90 commits
Select commit Hold shift + click to select a range
acc1c8f
chore: 1st attempt at automatic devnet deployment
spypsy Jun 20, 2024
d3b6a29
fix FULL_IMAGE var
spypsy Jun 21, 2024
e214015
fix missing vars
spypsy Jun 21, 2024
1a45de7
rm contract address vars
spypsy Jun 21, 2024
368cb6e
fix deploy p2p
spypsy Jun 21, 2024
d38fe6e
fix ecs name
spypsy Jun 24, 2024
26fd7e6
hardcode fork url
spypsy Jun 24, 2024
80253eb
force new deployments
spypsy Jun 24, 2024
16fe39b
hardcode aztec-dev in tf file
spypsy Jun 24, 2024
4ed2e5b
separate node - prover terraforms
spypsy Jun 25, 2024
cdfd127
add data resources
spypsy Jun 25, 2024
7e20a58
add provider block
spypsy Jun 26, 2024
b88a3ea
merge with master
spypsy Jun 26, 2024
a5d45bf
Merge branch 'master' into devnet
spypsy Jun 26, 2024
c19aae1
undo formatting
spypsy Jun 26, 2024
38bc061
undo formatting again
spypsy Jun 26, 2024
a04678a
cancel-in-progress
spypsy Jun 26, 2024
cf32b29
fix ecs task def name
spypsy Jun 26, 2024
2aa4eb0
fix aws_ecs_service name ref
spypsy Jun 26, 2024
b400d3b
fix container names
spypsy Jun 26, 2024
bf8c939
PR fixes
spypsy Jun 28, 2024
543f660
remove ref from main.tf
spypsy Jun 28, 2024
898388c
use deploy_tag again for fork url
spypsy Jun 28, 2024
ce09a75
feat: deploy L1 contracts on GA (#7262)
spypsy Jul 2, 2024
e1a9b5d
chore: redeploy L1 contracts (#7263)
spypsy Jul 2, 2024
2bd87c1
fix: fetch-depth 0 (#7264)
spypsy Jul 2, 2024
7afe0d6
chore: redeploy devnet (#7265)
spypsy Jul 2, 2024
987ba1a
chore: redeploy & log (#7266)
spypsy Jul 2, 2024
1227447
fix: use result key (#7267)
spypsy Jul 2, 2024
49170e4
fix: setup-action (#7268)
spypsy Jul 2, 2024
8c3fcc6
fix: action ordering (#7270)
spypsy Jul 2, 2024
e3c45ec
fix: publish cli image to dockerhub (#7274)
spypsy Jul 2, 2024
dbde910
fix: checkout depth on setup (#7275)
spypsy Jul 2, 2024
0f7e6ec
fix: typo (#7276)
spypsy Jul 2, 2024
d574047
fix: input script's file_path (#7278)
spypsy Jul 2, 2024
9c512c0
chore: redeploy l1 contracts (#7295)
spypsy Jul 3, 2024
b46079a
fix: docker run cmd (#7296)
spypsy Jul 3, 2024
ea3102c
fix: taint EFS on l1 redeploy (#7300)
spypsy Jul 3, 2024
dbdb71e
fix: master conflicts (#7303)
spypsy Jul 3, 2024
56c52f9
fix: init terraform in all cases (#7304)
spypsy Jul 3, 2024
b26dd72
merge with master
spypsy Jul 3, 2024
3f37de6
fix merge
spypsy Jul 3, 2024
7afe45f
undo noir changes
spypsy Jul 3, 2024
5e33a6b
fix ETHEREUM_HOST in terraform
spypsy Jul 4, 2024
6451d7c
chore: deploy mainnet-fork, update devnet chainID
spypsy Jul 5, 2024
4685126
redeploy l1
spypsy Jul 5, 2024
f6bf309
use aztecprotocol account
spypsy Jul 5, 2024
f2c24f2
fix fork working-directory
spypsy Jul 5, 2024
dc33049
try jsonencode
spypsy Jul 5, 2024
55b3da3
fix node_data_store count reference
spypsy Jul 5, 2024
8ded39b
remove count from mount targets
spypsy Jul 5, 2024
c204257
redeploy l1 contracts
spypsy Jul 8, 2024
62a6b36
merge with master
spypsy Jul 9, 2024
65b504f
pass aws secrets
spypsy Jul 9, 2024
51aecb6
remove unnecessary ref
spypsy Jul 9, 2024
307cc83
Redeploy L1
spypsy Jul 9, 2024
7d986e6
remove duplicate tasks
spypsy Jul 9, 2024
bcec415
keep artifacts folder
spypsy Jul 9, 2024
3946297
fix typo
spypsy Jul 9, 2024
ea01532
Redeploy L1 again
spypsy Jul 9, 2024
a888e25
fix mnemonic issue
spypsy Jul 9, 2024
8b81f08
debug mnemonic issue
spypsy Jul 9, 2024
e21f530
redeploy fork, contracts
spypsy Jul 9, 2024
b17c018
fix deploy-l1-contracts cmd
spypsy Jul 9, 2024
7e9cad3
fix build
spypsy Jul 9, 2024
f275b02
fix fn call
spypsy Jul 9, 2024
b25a0f5
fix chainId type
spypsy Jul 9, 2024
bf8742f
remove old apiKey ref
spypsy Jul 10, 2024
56e02ff
fix test issue
spypsy Jul 10, 2024
f31926b
redeploy
spypsy Jul 10, 2024
dfc82cd
pass chainId in cli command
spypsy Jul 10, 2024
ee12c95
only use chainId chainInfo
spypsy Jul 10, 2024
267c767
redeploy
spypsy Jul 10, 2024
a8fe490
convert chainId to number in cli
spypsy Jul 10, 2024
3428f96
taint fork efs
spypsy Jul 10, 2024
7c84351
use replace instead of taint
spypsy Jul 10, 2024
26268f8
wait for fork deployment
spypsy Jul 10, 2024
f284e8d
unique ecs volume root_directory
spypsy Jul 10, 2024
cb1ffbb
bool vars in quotes
spypsy Jul 10, 2024
bff5b13
use tostring
spypsy Jul 10, 2024
a336b56
fix common EFS volume
spypsy Jul 11, 2024
d0c19bc
redeploy
spypsy Jul 11, 2024
b1f496f
use descriptive option names
spypsy Jul 11, 2024
c715472
Merge branch 'master' into devnet
spypsy Jul 11, 2024
ad33b3a
PR Fixes
spypsy Jul 11, 2024
4804493
merge with master
spypsy Jul 15, 2024
55c88fb
Remove old index.ts
spypsy Jul 15, 2024
5fe445b
clarify L1 chain ID
spypsy Jul 15, 2024
13e2f22
Merge branch 'master' into devnet
spypsy Jul 15, 2024
a76cb2d
don't pass secrets
spypsy Jul 15, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions .github/scripts/wait_for_fork.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#!/bin/bash
set -e

DEPLOY_TAG=$1
TEST_FORK_API_KEY=$2

# When destroying and applying mainnet fork terraform, it may not be
# ready for a while, as it must register with DNS etc.
# This script waits on a healthy status from the fork - a valid response to the chainid request
# We retry every 20 seconds, and wait for a total of 5 minutes (15 times)
export ETHEREUM_HOST="https://$DEPLOY_TAG-mainnet-fork.aztec.network:8545/$TEST_FORK_API_KEY"

curl -H "Content-Type: application/json" -X POST --data '{"method":"eth_chainId","params":[],"id":49,"jsonrpc":"2.0"}' \
--connect-timeout 30 \
--retry 15 \
--retry-delay 20 \
$ETHEREUM_HOST
63 changes: 43 additions & 20 deletions .github/workflows/devnet-deploys.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,20 @@ env:
GIT_COMMIT: ${{ github.sha }}
DEPLOY_TAG: devnet
FILE_PATH: ./l1-contracts/addresses.txt
L1_CHAIN_ID: 677692
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
# TF Vars
TF_VAR_DOCKERHUB_ACCOUNT: aztecprotocol
TF_VAR_CHAIN_ID: 31337
TF_VAR_L1_CHAIN_ID: 677692
TF_VAR_BOOTNODE_1_PRIVATE_KEY: ${{ secrets.BOOTNODE_1_PRIVATE_KEY }}
TF_VAR_BOOTNODE_2_PRIVATE_KEY: ${{ secrets.BOOTNODE_2_PRIVATE_KEY }}
TF_VAR_SEQ_1_PUBLISHER_PRIVATE_KEY: ${{ secrets.SEQ_1_PUBLISHER_PRIVATE_KEY }}
TF_VAR_SEQ_2_PUBLISHER_PRIVATE_KEY: ${{ secrets.SEQ_2_PUBLISHER_PRIVATE_KEY }}
TF_VAR_DEPLOY_TAG: devnet
TF_VAR_API_KEY: ${{ secrets.FORK_API_KEY }}
TF_VAR_FORK_MNEMONIC: ${{ secrets.FORK_MNEMONIC }}
TF_VAR_INFURA_API_KEY: ${{ secrets.INFURA_API_KEY }}

jobs:
setup:
Expand All @@ -33,6 +38,9 @@ jobs:
build:
needs: setup
runs-on: ${{ github.actor }}-x86
outputs:
l1_contracts_changed: ${{ steps.check_l1_changes.outputs.result }}
mainnet_fork_changed: ${{ steps.check_fork_changes.outputs.result }}
steps:
- uses: actions/checkout@v4
with:
Expand All @@ -46,10 +54,11 @@ jobs:
timeout-minutes: 40
# Run the build steps for each image with version and arch, push to dockerhub
run: |
earthly-ci --no-output --push ./yarn-project+export-aztec-arch --DIST_TAG=${{ env.DEPLOY_TAG }}
earthly-ci \
--no-output --push ./yarn-project+export-aztec-arch --DIST_TAG=${{ env.DEPLOY_TAG }}

- name: Check if L1 contracts need deployment
id: check_changes_build
id: check_l1_changes
uses: actions/github-script@v7
with:
script: |
Expand All @@ -58,6 +67,16 @@ jobs:
const fileChanged = changedFiles.includes('l1-contracts/REDEPLOY');
return fileChanged

- name: Check if mainnet fork needs deployment
id: check_fork_changes
uses: actions/github-script@v7
with:
script: |
const { execSync } = require('child_process');
const changedFiles = execSync('git diff --name-only ${{ github.event.before }} ${{ github.sha }}').toString().split('\n');
const fileChanged = changedFiles.some(file => file.startsWith('iac/mainnet-fork'));
return fileChanged

terraform_deploy:
runs-on: ubuntu-latest
needs: build
Expand All @@ -76,29 +95,33 @@ jobs:
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: us-west-2
aws-region: eu-west-2

- name: Deploy mainnet fork
if: needs.build.outputs.mainnet_fork_changed == 'true'
working-directory: ./iac/mainnet-fork/terraform
run: |
terraform init -input=false -backend-config="key=${{ env.DEPLOY_TAG }}/mainnet-fork"
terraform apply -input=false -auto-approve -replace="aws_ecs_service.aztec_mainnet_fork" -replace="aws_efs_file_system.aztec_mainnet_fork_data_store"

- name: Wait for mainnet fork deployment
if: needs.build.outputs.mainnet_fork_changed == 'true'
run: |
./.github/scripts/wait_for_fork.sh ${{ env.DEPLOY_TAG }} ${{ secrets.FORK_API_KEY }}

- name: Check if L1 contracts need deployment
id: check_changes_release
uses: actions/github-script@v7
with:
script: |
const { execSync } = require('child_process');
const changedFiles = execSync('git diff --name-only ${{ github.event.before }} ${{ github.sha }}').toString().split('\n');
const fileChanged = changedFiles.includes('l1-contracts/REDEPLOY');
return fileChanged
- name: Deploy L1 Contracts
if: steps.check_changes_release.outputs.result == 'true'
if: needs.build.outputs.l1_contracts_changed == 'true' || needs.build.outputs.mainnet_fork_changed == 'true'
run: |
docker pull aztecprotocol/aztec:${{ env.DEPLOY_TAG }}
docker run aztecprotocol/aztec:${{ env.DEPLOY_TAG }} \
deploy-l1-contracts -p ${{ secrets.SEQ_1_PUBLISHER_PRIVATE_KEY }} \
-u https://${{ env.DEPLOY_TAG }}-mainnet-fork.aztec.network:8545/${{ secrets.FORK_API_KEY }} \
docker run aztecprotocol/aztec:${{ env.DEPLOY_TAG }} deploy-l1-contracts \
--private-key ${{ secrets.SEQ_1_PUBLISHER_PRIVATE_KEY }} \
--rpc-url https://${{ env.DEPLOY_TAG }}-mainnet-fork.aztec.network:8545/${{ secrets.FORK_API_KEY }} \
--chain-id ${{ env.L1_CHAIN_ID }} \
| tee ${{ env.FILE_PATH }}
./.github/scripts/extract_l1_addresses.sh ${{ env.FILE_PATH }}

- name: Apply l1-contracts Terraform
if: steps.check_changes_release.outputs.result == 'true'
if: needs.build.outputs.l1_contracts_changed == 'true' || needs.build.outputs.mainnet_fork_changed == 'true'
working-directory: ./l1-contracts/terraform
run: |
terraform init -input=false -backend-config="key=${{ env.DEPLOY_TAG }}/l1-contracts"
Expand All @@ -116,10 +139,10 @@ jobs:
terraform init -input=false -backend-config="key=${{ env.DEPLOY_TAG }}/aztec-node"

- name: Taint node filesystem if L1 contracts are redeployed
if: steps.check_changes_release.outputs.result == 'true'
if: needs.build.outputs.l1_contracts_changed == 'true'
working-directory: ./yarn-project/aztec/terraform/node
run: |
terraform state list | grep 'aws_efs_file_system.node_data_store' | xargs -n1 terraform taint
terraform taint aws_efs_file_system.node_data_store

- name: Deploy Aztec Nodes
working-directory: ./yarn-project/aztec/terraform/node
Expand Down
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,6 @@ cmake-build-debug
.arg
.secret
.bb_tmp

# Terraform
*.tfvars
6 changes: 3 additions & 3 deletions aztec-up/bin/docker-compose.sandbox.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,18 +23,18 @@ services:
DEBUG: # Loaded from the user shell if explicitly set
HOST_WORKDIR: "${PWD}" # Loaded from the user shell to show log files absolute path in host
ETHEREUM_HOST: ${ETHEREUM_HOST:-http://ethereum:${ANVIL_PORT:-8545}}
CHAIN_ID: 31337
L1_CHAIN_ID: 31337
ARCHIVER_POLLING_INTERVAL_MS: 50
P2P_BLOCK_CHECK_INTERVAL_MS: 50
SEQ_TX_POLLING_INTERVAL_MS: 50
WS_BLOCK_CHECK_INTERVAL_MS: 50
PXE_BLOCK_POLLING_INTERVAL_MS: 50
ARCHIVER_VIEM_POLLING_INTERVAL_MS: 500
PXE_PORT: ${PXE_PORT:-8080}
PORT: ${AZTEC_NODE_PORT:-8080}
PORT: ${AZTEC_NODE_PORT:-8080}
TEST_ACCOUNTS: ${TEST_ACCOUNTS:-true}
volumes:
- ./log:/usr/src/yarn-project/aztec/log:rw
depends_on:
- ethereum
command: "start --sandbox"
command: "start --sandbox"
6 changes: 3 additions & 3 deletions boxes/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ services:

aztec:
image: aztecprotocol/aztec:${AZTEC_DOCKER_TAG:-latest}
command: 'start --sandbox'
command: "start --sandbox"
environment:
ETHEREUM_HOST: http://ethereum:8545
CHAIN_ID: 31337
L1_CHAIN_ID: 31337
ARCHIVER_POLLING_INTERVAL_MS: 50
P2P_BLOCK_CHECK_INTERVAL_MS: 50
SEQ_TX_POLLING_INTERVAL_MS: 50
Expand All @@ -29,7 +29,7 @@ services:
DEBUG: "aztec:*"
DEBUG_COLORS: "true"
ETHEREUM_HOST: http://ethereum:8545
CHAIN_ID: 31337
L1_CHAIN_ID: 31337
PXE_URL: http://aztec:8080
BOX: ${BOX:-vanilla}
CI: ${CI:-}
Expand Down
2 changes: 1 addition & 1 deletion build-system/scripts/deploy_terraform
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export TF_VAR_DOCKERHUB_ACCOUNT=$DOCKERHUB_ACCOUNT
export TF_VAR_FORK_MNEMONIC=$FORK_MNEMONIC
export TF_VAR_INFURA_API_KEY=$INFURA_API_KEY
export TF_VAR_API_KEY=$FORK_API_KEY
export TF_VAR_CHAIN_ID=$CHAIN_ID
export TF_VAR_L1_CHAIN_ID=$CHAIN_ID

# If given a repository name, use it to construct and set/override the backend key.
# Otherwise use the key as specified in the terraform.
Expand Down
4 changes: 2 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ services:
LOG_LEVEL: ${LOG_LEVEL:-info}
DEBUG: ${DEBUG:-aztec:*,-json-rpc:*,-aztec:circuits:artifact_hash,-aztec:randomness_singleton}
DEBUG_COLORS: 1
CHAIN_ID: 31337
L1_CHAIN_ID: 31337
VERSION: 1
PXE_PROVER_ENABLED: ${PXE_PROVER_ENABLED:-1}
PXE_DATA_DIRECTORY: /var/lib/aztec/pxe
Expand Down Expand Up @@ -39,7 +39,7 @@ services:
LOG_LEVEL: ${LOG_LEVEL:-info}
DEBUG: ${DEBUG:-aztec:*,-json-rpc:*,-aztec:circuits:artifact_hash,-aztec:randomness_singleton,-aztec:avm_simulator:*}
DEBUG_COLORS: 1
CHAIN_ID: 31337
L1_CHAIN_ID: 31337
VERSION: 1
NODE_NO_WARNINGS: 1
PROVER_REAL_PROOFS: ${PROVER_REAL_PROOFS:-1}
Expand Down
2 changes: 1 addition & 1 deletion docs/docs/reference/sandbox_reference/sandbox-reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ To change them, you can open `~/.aztec/docker-compose.yml` and edit them directl
DEBUG=aztec:* # The level of debugging logs to be displayed. using "aztec:*" will log everything.
HOST_WORKDIR='${PWD}' # The location to store log outpus. Will use ~/.aztec where the docker-compose.yml file is stored by default.
ETHEREUM_HOST=http://ethereum:8545 # The Ethereum JSON RPC URL. We use an anvil instance that runs in parallel to the sandbox on docker by default.
CHAIN_ID=31337 # The Chain ID that the Ethereum host is using.
L1_CHAIN_ID=31337 # The Chain ID that the Ethereum host is using.
TEST_ACCOUNTS='true' # Option to deploy 3 test account when sandbox starts. (default: true)
MODE='sandbox' # Option to start the sandbox or a standalone part of the system. (default: sandbox)
PXE_PORT=8080 # The port that the PXE will be listening to (default: 8080)
Expand Down
4 changes: 2 additions & 2 deletions iac/mainnet-fork/Earthfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@ build:
# Expose port 80
EXPOSE 80

# Set entrypoint
# Set entrypoint.
ENTRYPOINT ["sh", "-c", "./scripts/run_nginx_anvil.sh"]

export-mainnet-fork:
FROM +build
ARG DIST_TAG="aztec-dev"
ARG ARCH
SAVE IMAGE --push spypsy/mainnet-fork:${DIST_TAG}${ARCH:+-$ARCH}
SAVE IMAGE --push aztecprotocol/mainnet-fork:${DIST_TAG}${ARCH:+-$ARCH}
6 changes: 5 additions & 1 deletion iac/mainnet-fork/scripts/run_nginx_anvil.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,16 @@ trap 'kill $(jobs -p)' SIGTERM
HOST="0.0.0.0"
PORT=8544
ETHEREUM_HOST=$HOST:$PORT
# Stripping double quotations from the mnemonic seed phrase

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This feels like the kind of bug that takes hours to figure out and seconds to fix

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

precisely what happened 🙃

echo "stripping double quotations from the mnemonic seed phrase: ${MNEMONIC:0:10}..."
MNEMONIC_STRIPPED=${MNEMONIC//\"/}
echo "result: ${MNEMONIC_STRIPPED:0:10}..."

# Data directory for anvil state
mkdir -p /data

# Run anvil silently
.foundry/bin/anvil --silent --host $HOST -p $PORT -m "$MNEMONIC" -f=https://mainnet.infura.io/v3/$INFURA_API_KEY --chain-id=$CHAIN_ID --fork-block-number=15918000 --block-base-fee-per-gas=10 -s=$SNAPSHOT_FREQUENCY --state=./data/state --balance=1000000000000000000 >/dev/null &
.foundry/bin/anvil --silent --host $HOST -p $PORT -m "$MNEMONIC_STRIPPED" -f=https://mainnet.infura.io/v3/$INFURA_API_KEY --chain-id=$L1_CHAIN_ID --fork-block-number=15918000 --block-base-fee-per-gas=10 -s=$SNAPSHOT_FREQUENCY --state=./data/state --balance=1000000000000000000 >/dev/null &

echo "Waiting for ethereum host at $ETHEREUM_HOST..."
while ! curl -s $ETHEREUM_HOST >/dev/null; do sleep 1; done
Expand Down
98 changes: 48 additions & 50 deletions iac/mainnet-fork/terraform/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -113,57 +113,55 @@ resource "aws_ecs_task_definition" "aztec_mainnet_fork" {
}
}

container_definitions = <<DEFINITION
[
{
"name": "${var.DEPLOY_TAG}-mainnet-fork",
"image": "${var.DOCKERHUB_ACCOUNT}/mainnet-fork:aztec-dev",
"essential": true,
"environment": [
{
"name": "API_KEY",
"value": "${var.API_KEY}"
},
{
"name": "MNEMONIC",
"value": "${var.FORK_MNEMONIC}"
},
{
"name": "INFURA_API_KEY",
"value": "${var.INFURA_API_KEY}"
},
{
"name": "CHAIN_ID",
"value": "31337"
},
{
"name": "SNAPSHOT_FREQUENCY",
"value": "15"
container_definitions = jsonencode([
{
name = "${var.DEPLOY_TAG}-mainnet-fork"
image = "${var.DOCKERHUB_ACCOUNT}/mainnet-fork:${var.DEPLOY_TAG}"
essential = true
environment = [
{
name = "API_KEY"
value = "${var.API_KEY}"
},
{
name = "MNEMONIC"
value = "${var.FORK_MNEMONIC}"
},
{
name = "INFURA_API_KEY"
value = "${var.INFURA_API_KEY}"
},
{
name = "L1_CHAIN_ID"
value = "${var.L1_CHAIN_ID}"
},
{
name = "SNAPSHOT_FREQUENCY"
value = "15"
}
]
mountPoints = [
{
containerPath = "/data"
sourceVolume = "efs-data-store"
}
]
logConfiguration = {
logDriver = "awslogs"
options = {
awslogs-group = "${aws_cloudwatch_log_group.aztec_mainnet_fork_logs.name}"
awslogs-region = "eu-west-2"
awslogs-stream-prefix = "ecs"
}
}
],
"mountPoints": [
{
"containerPath": "/data",
"sourceVolume": "efs-data-store"
}
],
"logConfiguration": {
"logDriver": "awslogs",
"options": {
"awslogs-group": "${aws_cloudwatch_log_group.aztec_mainnet_fork_logs.name}",
"awslogs-region": "eu-west-2",
"awslogs-stream-prefix": "ecs"
}
},
"portMappings": [
{
"containerPort": 80,
"hostPort": 80
}
]
}
]
DEFINITION
portMappings = [
{
containerPort = 80
hostPort = 80
}
]
}
])
}


Expand Down
4 changes: 4 additions & 0 deletions iac/mainnet-fork/terraform/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,7 @@ variable "DOCKERHUB_ACCOUNT" {
variable "DEPLOY_TAG" {
type = string
}

variable "L1_CHAIN_ID" {
type = string
}
4 changes: 2 additions & 2 deletions l1-contracts/REDEPLOY
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# Append value to force redeploy
1
# Change value to force redeploy
2
Loading