Credentials
AnyCloud supports managing multiple cloud
Credentials
via the anycloud credentials
CLI command. The Credentials
are stored in a local file that is not committed to any repository located at ~/.anycloud/credentials.json
. AnyCloud supports Credentials
for AWS, GCP and Azure. Each Credentials
has a name, or alias, to refer to it within the Deploy Configs
. This allows you to, for example, create credentials for your personal AWS and GCP accounts as well as for a company's AWS account and use each of them to create separate Deploy Configs
for different Apps
or create a multi region/cloud Deploy Config
for the same App
.An AWS Credentials consists of an
accessKeyId
and secretAccessKey
from an IAM user with an AmazonEC2FullAccess
policy attached.$ anycloud credentials add
Pick cloud provider for the new Credentials:
> AWS
GCP
Azure
Name for new Credentials: mystartup-aws
AWS Access Key ID: ******************
AWS Secret Access Key: ******************
Successfully created "mystartup-aws" Credentials
A GCP Credentials consists of an
privateKey
and clientEmail
that come from a service account with the Compute Engine Admin
role and the projectId
in which the service account is contained.$ anycloud credentials add
Pick cloud provider for the new Credentials:
AWS
> GCP
Azure
Credential Name: mystartup-gcp
GCP Project ID: my-gcp-project
GCP Client Email: *******[email protected]
GCP Private Key: -----BEGIN PRIVATE KEY-----\*****\n-----END PRIVATE KEY-----\n
Successfully created "mystartup-gcp" Credentials
An Azure Credentials consists of the
directoryId
that belongs to the Azure Active Directory, the applicationId
and secret
of the application and service principal, and the subscriptionId
of the billing subscription.$ anycloud credentials add
Pick cloud provider for the new Credentials:
AWS
GCP
> Azure
Credentials Name: mystartup-azure
Azure Application ID: ********-****-****-****-************
Azure Directory ID: ********-****-****-****-************
Azure Subscription ID: ********-****-****-****-************
Azure Secret: **********************************
Successfully created "mystartup-gcp" Credential
Last modified 1yr ago