Skip to main content

art_env_generate-config

art env generate-config

Create a sample config file for environment create

Synopsis

Use this command to create a sample config file that can be used to create an environment using the art CLI. You need to then populate the generated sample file with appropriate values before using it to create the desired environment.

Alternatively, this command can also be used to import your latest environment config by passing the 'import' flag. When passing the 'import' flag, the 'environment-name' and 'region' flags are mandatory.

art env generate-config [-f fileName] [--import --environment-name env --region region] [flags]

Examples


## Generate a new config
art env generate-config

## Generate a config with the latest spec that was applied to the environment
This is what you want if you created/modified the environment using the ui and you don't have the latest spec that was applied to the environment
art env generate-config --import --environment-name tropical --region us-east-2

Options

      --eks-name string                     the name of the eks cluster (default "tropical")
--environment-name string the name of the environment (default "tropical")
-f, --file string the name of the file you want to write to (default "env.yaml")
-h, --help help for generate-config
--import pass to download the latest spec that was applied to the environment. ('environment-name' and 'region' flags are required if this flag is passed)
--include-elasticache includes elasticache spec if passed
--include-elasticsearch includes elasticsearch if passed
--include-mongodb-atlas-vpc-peering includes mongodb vpc peering if passed
--include-rds-postgres includes rds postgres if passed
--include-s3-bucket includes s3 bucket spec if passed
--include-s3-static-site includes s3 static site spec if passed
--ng-auto-scale is nodegroup auto scale
--ng-disk-size uint nodegroup disk size (default 20)
--ng-instances uint the number of instances for the nodegroup (default 3)
--ng-instances-max uint the max number of instances for the nodegroup (default 3)
--ng-instances-min uint the min number of instances for the nodegroup (default 1)
--ng-instances-type string the instance type for the nodegroup (default "t3.medium")
--ng-is-spot is nodegroup spot
--ng-name string the name of the nodegroup (default "tropical")
--region string the region of the environment (default "us-east-1")

Options inherited from parent commands

      --key string      art key (clientID you get when a token is generated from the ui)
--secret string art secret (secret you get when a token is generated from the ui)

SEE ALSO

  • art env - Parent command to manage your environment
Auto generated by spf13/cobra on 2-Nov-2022