aws-samples / aws-blockchain-node-runners

Run blockchain nodes on cloud
https://aws-samples.github.io/aws-blockchain-node-runners/
MIT No Attribution
52 stars 45 forks source link

How to connect to nodes with internal IP addresses using AWS Client VPN? #104

Open frbrkoala opened 3 months ago

frbrkoala commented 3 months ago

Community Note

What is the outcome that you are trying to reach?

I'd like to connect to a node RPC API using its internal IP address from my local machine and do it safely.

Describe the solution you would like

I'd like to use AWS Client VPN, like described in this blog post: https://aws.amazon.com/blogs/database/run-a-serverless-arbitrum-full-node-on-aws/

Describe alternatives you have considered

The other way is to add my local machines' external IP address to security policy, but that might not be safe.

Additional context

evertonfraga commented 3 months ago

Are you able to access it with SSM?

if so, i made a script that uses aws ssm start-session --target "$INSTANCE_ID" on the EC2 instance that was created by a provided stack.

You can run it like ./cf2ssh.sh sui-single-node-testnet, the parameter should correspond to your CFn stack name. If you also find that useful, we can incorporate that script to a tooling section on the project.

github-actions[bot] commented 2 months ago

This issue has been automatically marked as stale because it has been open 30 days with no activity. Remove stale label or comment or this issue will be closed in 10 days

github-actions[bot] commented 1 month ago

Issue closed due to inactivity.

github-actions[bot] commented 2 weeks ago

This issue has been automatically marked as stale because it has been open 30 days with no activity. Remove stale label or comment or this issue will be closed in 10 days

github-actions[bot] commented 1 week ago

Issue closed due to inactivity.