Documentation
¶
Overview ¶
Package main is the cloudtab CLI entrypoint.
Usage:
cloudtab breakdown --path plan.json --region ap-guangzhou cloudtab diff --before plan.old.json --after plan.new.json [--format markdown]
Auth (Tencent Cloud): reads TENCENTCLOUD_SECRET_ID / TENCENTCLOUD_SECRET_KEY from env.
Auth (AWS): the AWS Price List backend uses the standard AWS credential chain (AWS_ACCESS_KEY_ID / AWS_SECRET_ACCESS_KEY / AWS_SESSION_TOKEN, shared config files, IAM role, ...). It is only consulted when the plan contains aws_* resources, so a pure-Tencent run needs no AWS credentials.
A single plan may mix tencentcloud_* and aws_* resources; each resource is routed to the matching pricing backend by its provider prefix.
Site: Tencent Cloud has two independent sites (Chinese-mainland and International) with separate account systems. The site is chosen by the credential, not the region, so it is selected explicitly with --site (domestic|intl) or the TENCENTCLOUD_SITE env var. Default is domestic.