Skip to main content

mantil aws install

Installs Mantil node into AWS account

Command will install node into AWS account. Node consists of few Lambda function, API Gateway and S3 bucket. You must provide credentials for Mantil to access your AWS account.

There is --dry-run option which will show you what credentials will be used and what account will be managed by command.

USAGE

  mantil aws install [node-name] [options]

ARGUMENTS

  [node-name]  Mantil node name.
If not provided default name dev will be used for the first node.

OPTIONS

      --aws-access-key-id string       Access key ID for the AWS account, must be used with the
aws-secret-access-key and aws-region options
--aws-env Use AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY and AWS_DEFAULT_REGION
environment variables for AWS authentication
--aws-profile string Use the given profile for AWS authentication
--aws-region string Region for the AWS account, must be used with and aws-access-key-id and
aws-secret-access-key options
--aws-secret-access-key string Secret access key for the AWS account, must be used with the
aws-access-key-id and aws-region options
--dry-run Don't start install/uninstall just show what credentials will be used

EXAMPLES

  You must provide credentials for Mantil to access your AWS account.
There are three ways to provide credentials.

==> specifiy access keys as arguments:
$ mantil aws install --aws-access-key-id=AKIAIOSFODNN7EXAMPLE \
--aws-secret-access-key=wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY \
--aws-region=us-east-1

==> read access keys from environment variables:
$ export AWS_ACCESS_KEY_ID=AKIAIOSFODNN7EXAMPLE
$ export AWS_SECRET_ACCESS_KEY=wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY
$ export AWS_DEFAULT_REGION=us-east-1
$ mantil aws install --aws-env

Reference: https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-envvars.html

==> use your named AWS profile form ~/.aws/config
$ mantil aws install --aws-profile=my-named-profile

Reference: https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-profiles.html

GLOBAL OPTIONS

      --help       Show command help
--no-color Don't use colors in output