feat(polygon): Add Polygon PoS Full Node Blueprint using Erigon#236
Merged
frbrkoala merged 1 commit intoaws-samples:mainfrom Mar 25, 2026
Merged
feat(polygon): Add Polygon PoS Full Node Blueprint using Erigon#236frbrkoala merged 1 commit intoaws-samples:mainfrom
frbrkoala merged 1 commit intoaws-samples:mainfrom
Conversation
5464b06 to
6d70dba
Compare
c084fab to
77b5754
Compare
Add Polygon PoS Full Node blueprint under lib/polygon/ using Erigon (0xpolygon/erigon:v3.4.0) as a single-container all-in-one client. Stacks: - polygon-common: IAM role with SSM and CloudWatch policies - polygon-single-node: single EC2 instance (reuses SingleNodeConstruct) - polygon-ha-nodes: ALB + ASG multi-AZ HA (reuses HANodesConstruct) Why Erigon over Heimdall+Bor: - Heimdall v1->v2 migration breaks P2P for v1 clients on both networks - Heimdall v2 Docker image has init bugs (reported: 0xPolygon/heimdall-v2#568) - Erigon connects to Polygon official Heimdall API endpoint instead - Built-in OtterSync for torrent-based snapshot sync Includes: - Config with mainnet and amoy sample .env files - Security group: P2P (30303), torrent (42069) public; RPC (8545) VPC-only - User-data: Docker install, EBS volume detection, Erigon startup, CloudWatch cron - README with deployment guide and Well-Architected checklist - Website docs page - Jest tests (3/3 passing), cdk-nag compliant - package.json for CI integration - Removed polygon from CI test exclusion list Deployment verified on Graviton m7g.xlarge in us-east-1. Closes aws-samples#7 Refs aws-samples#233
77b5754 to
394e310
Compare
frbrkoala
approved these changes
Mar 25, 2026
Contributor
frbrkoala
left a comment
There was a problem hiding this comment.
All good! Thanks a lot for your contribution!
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add Polygon PoS Full Node Blueprint
Adds a Polygon PoS blueprint under
lib/polygon/using Erigon as a single-container all-in-one client, with both single-node and highly-available deployment options.Architecture
Uses
0xpolygon/erigon:v3.4.0(Polygon's fork of Erigon) with--chain=bor-mainnetand--bor.heimdall=https://heimdall-api.polygon.technology. Single container per node, no separate Heimdall node needed.Why Erigon over Heimdall+Bor: The traditional dual-container approach (Heimdall + Bor) is currently unreliable due to the ongoing Heimdall v1→v2 migration. Erigon provides a simpler, single-container alternative that connects to Polygon's official Heimdall API endpoint. See heimdall-v2#568 for the Docker image issues we found.
What's included
polygon-common— IAM role, exportspolygon-single-node— Single EC2 instance with CloudWatch dashboard (reusesSingleNodeConstruct)polygon-ha-nodes— ALB + ASG multi-AZ HA setup (reusesHANodesConstruct).envbased, with mainnet and amoy sample configs--http.vhosts=localhost,127.0.0.1; data dir owned by UID 1000 with mode 750website/docs/Blueprints/Polygon.mdrun-all-cdk-tests.shHardware specs
Storage specs per Polygon official docs.
Deployment verification
Key design decisions
docker-compose-plugininstead of standalone binary, no checksum management needed.Closes #7
Refs #233