domain:add
Overview and basic usage
Adds specified domain to your account.
- Added domain and its subdomains can then be used in your stacks (for HTTP Api Gateways, Application Load Balancers, buckets and CDNs).
- When adding domain:
- Hosted zone (for hosting DNS records) is created in your AWS account (if not already present).
- TLS certificates (free) are generated for your domain in the chosen region (optionally you can also choose to
generate additional certificates in
us-east-1
region for usage with CDN). - If the domain is managed by a third-party provider (not AWS), you will need to manually change your domain registrar's name server records to point to the created hosted zone. (If the domain is in use, you should be careful and refer to this AWS guide before migrating the domain).
- For more info, refer to Domains and certificates page.
Copy
stacktape domain:add --region <<region>>
API reference
Options
region (--r)
Required
AWS region to use for the current operation.
Type: string ENUM
Possible values: af-south-1ap-east-1ap-northeast-1ap-northeast-2ap-northeast-3ap-south-1ap-southeast-1ap-southeast-2ca-central-1eu-central-1eu-north-1eu-south-1eu-west-1eu-west-2eu-west-3me-south-1sa-east-1us-east-1us-east-2us-west-1us-west-2
help (--h)
Shows help for the command
Type: string
- If specified, the command won't perform any action besides printing help.
logFormat (--lf)
Format of logs printed to your console.
Type: string ENUM
Possible values: basicfancyjsonnormal
Available options:
fancy
: Logs are colorized and dynamically re-rendered.normal
: Logs are colorized but not dynamically re-rendered.basic
: Simple text onlyjson
: Logs are printed as JSON objects
logLevel (--ll)
Level of logs that are being printed to the console.
Type: string ENUM
Possible values: debugerrorinfo
Available options:
info
: Prints basic information about everything that's happening.error
: Prints only errors.debug
: Prints detailed information about everything that's happening.
profile (--p)
AWS profile to use with the command
Type: string
- You can manage AWS profiles on your system using
aws-profile:create
,aws-profile:update
oraws-profile:delete
command. - You can configure the default profile used with every Stacktape command using the
defaults:configure
command.