AnyCloud
Search…
Deploy to AWS

Enable programmatic AWS access to VMs for AnyCloud

1) Create a new IAM user in your AWS account using their console/UI as described here.
2) Create a new access key under that IAM user using their console/UI as described here.
3) Enable programmatic access for that IAM user, and attach the built-in AmazonEC2FullAccesspolicy to it as described here.
4) Take the accessKeyId and secretAccessKey from step 2 and create AWS Credentials stored locally at ~/.anycloud/credentials.json only.
You will need to pick a name or alias for the Credentials. The default value will be aws. In this example, we will call it mystartup-aws.
1
$ anycloud credentials new
2
? Pick cloud provider for the new credentials ›
3
❯ AWS
4
GCP
5
Azure
6
Name for new Credentials: mystartup-aws
7
AWS Access Key ID: ******************
8
AWS Secret Access Key: ******************
9
Successfully created "mystartup-aws" Credentials
Copied!

Configure your project

Define a new Deploy Config in the anycloud.json project you want to deploy to AWS using the AnyCloud CLI.
You will need to pick a name, or alias, for the Deploy Config. The default value will be staging. You will also need to associate Credentials to this Deploy Config.
1
$ anycloud config new
2
? Name for new Deploy Config › staging
3
? Pick Credentials to use ›
4
❯ mystartup-aws
5
Create new Credentials
6
? Do you want to choose a specific region for this Deploy Config? › y
7
? Region name › us-east-1
8
? Do you want to select which virtual machine type to use for this Deploy Config? › y
9
? Virtual Machine Type › t2.micro
10
? Do you want to add another region to this Deploy Config? › n
11
? Minimum number of VMs per region or cloud › 1
12
? Would you like to define a maximum number of VMs? › n
13
Successfully created "staging" Deploy Config.
Copied!
Last modified 5mo ago