Planetmint Documentation
  • Planetmint
  • Introduction
    • What is Planetmint?
    • Properties of Planetmint
    • Quickstart
  • Using Planetmint
    • Zenroom Smart Contracts & Policies
  • Node Setup
    • Basic AWS Setup
      • Get an AWS Account
    • Run Planetmint with all-in-one Docker
  • Networks & Federations
    • How to Set Up a Planetmint Network
    • Planetmint Networks
    • Kubernetes Deployment Template
Powered by GitBook
On this page
  • Get an AWS Account
  • Install the AWS Command Line Interface
  • Create an AWS Access Key
  • Generate an RSA Key Pair for SSH
  • Send the Public Key to AWS
  1. Node Setup

Basic AWS Setup

Before you can deploy anything on AWS, you must do a few things.

PreviousNode SetupNextRun Planetmint with all-in-one Docker

Last updated 2 years ago

Get an AWS Account

If you don't already have an AWS account, you can .

Install the AWS Command Line Interface

To install the AWS Command Line Interface (CLI), do the following:

pip install awscli

Create an AWS Access Key

Next, you will need AWS access keys (access key ID and secret access key). If you don’t have those, see .

You should also pick a default AWS region name (e.g. eu-central-1). The AWS documentation has .

Once you’ve got your AWS access key and you’ve picked a default AWS region name, go to a terminal session and enter:

aws configure

and answer the four questions. For example:

AWS Access Key ID [None]: AKIAIOSFODNN7EXAMPLE
AWS Secret Access Key [None]: wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY
Default region name [None]: eu-central-1
Default output format [None]: [Press Enter]

This writes two files: ~/.aws/credentials and ~/.aws/config. AWS tools and packages look for those files.

Generate an RSA Key Pair for SSH

Eventually, you’ll have one or more instances (virtual machines) running on AWS and want to SSH to them. To do that, you need a public/private key pair. The public key will be sent to AWS; you can tell AWS to put it in any instances you provision there. You will keep the private key on your local workstation.

Send the Public Key to AWS

To send the public key to AWS, use the AWS Command Line Interface:

aws ec2 import-key-pair \
--key-name "<key-name>" \
--public-key-material file://~/.ssh/<key-name>.pub

See the appendix .

If you're curious why there's a file:// in front of the path to the public key, see issue .

If you want to verify that your key pair was imported by AWS, go to , select the region you gave above when you did aws configure (e.g. eu-central-1), click on Key Pairs in the left sidebar, and check that <key-name> is listed.

sign up for one for free at aws.amazon.com
the AWS documentation about access keys
a list of them
page about how to generate a key pair for SSH
aws/aws-cli#41 on GitHub
the Amazon EC2 console