Skip to content
Merged

fix: nit #10392

Show file tree
Hide file tree
Changes from all commits
Commits
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
49 changes: 49 additions & 0 deletions iac/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -125,3 +125,52 @@ resource "aws_route53_record" "static" {
evaluate_target_health = true
}
}

resource "aws_s3_bucket" "sp_testnet_redirect" {
bucket = "sp-testnet.aztec.network"

website {
redirect_all_requests_to {
host_name = "github.com"
protocol = "https"
path = "/AztecProtocol/aztec-packages/refs/heads/master/spartan/releases/create-spartan.sh"
}
}
}

resource "aws_s3_bucket_public_access_block" "sp_testnet_public_access" {
bucket = aws_s3_bucket.sp_testnet_redirect.id

block_public_acls = false
block_public_policy = false
ignore_public_acls = false
restrict_public_buckets = false
}

resource "aws_s3_bucket_policy" "sp_testnet_policy" {
bucket = aws_s3_bucket.sp_testnet_redirect.id

policy = jsonencode({
Version = "2012-10-17"
Statement = [
{
Effect = "Allow"
Principal = "*"
Action = "s3:GetObject"
Resource = "arn:aws:s3:::${aws_s3_bucket.sp_testnet_redirect.id}/*"
}
]
})
}

resource "aws_route53_record" "sp_testnet" {
zone_id = data.terraform_remote_state.aztec2_iac.outputs.aws_route53_zone_id
name = "sp-testnet.aztec.network"
type = "A"

alias {
name = aws_s3_bucket.sp_testnet_redirect.website_domain
zone_id = aws_s3_bucket.sp_testnet_redirect.hosted_zone_id
evaluate_target_health = true
}
}
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ It should work in most UNIX-based machines.
To configure a new node, create a new directory and run the install script:

```bash
cd val1
mkdir val1 && cd val1
curl -L https://raw.githubusercontent.com/AztecProtocol/aztec-packages/refs/heads/master/spartan/releases/rough-rhino/create-spartan.sh | bash
```

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash

# URL of the aztec-spartan.sh script
DEFAULT_URL="https://raw.githubusercontent.com/AztecProtocol/aztec-packages/refs/heads/zpedro/testnet_docker_compose/spartan/releases/rough-rhino/aztec-spartan.sh"
DEFAULT_URL="https://raw.githubusercontent.com/AztecProtocol/aztec-packages/refs/heads/master/spartan/releases/rough-rhino/aztec-spartan.sh"

# Colors for output
GREEN='\033[0;32m'
Expand Down