astroctl cloud aws selfHosted
Self-hosted cluster prerequisite management
Synopsis
Manage prerequisites for self-hosted (vanilla Kubernetes) clusters on AWS.
Credentials are stored in AstroPulse's encrypted vault, never in cluster YAML.
Two ways to set up:
Terminal
Fully automated (recommended):
setup → creates IAM user, S3 bucket, policies via CloudFormation
→ auto-stores credentials in vault (no manual copy needed)
apply → cluster YAML uses credentials.type: Vault
Bring your own credentials (BYOC):
connect → AstroPulse checks your IAM user keys + stores them in vault
apply → cluster YAML uses credentials.type: Vault
Commands:
Terminal
setup Deploy prerequisites + auto-store credentials in vault
connect Send your own credentials; AstroPulse checks and stores them
disconnect Delete the stored keys from the vault (the access key stays active in AWS)
status Show the recorded setup steps (alias: validate)
forget Forget the recorded setup (nothing in the cloud changes)
cleanup Delete CloudFormation stack + purge vault credentials
Terminal
astroctl cloud aws selfHosted [flags]
Examples
Terminal
# Fully automated: setup creates everything + stores creds in vault
astroctl cloud aws selfHosted setup --account-id 123456789012 --region us-west-2 --cluster-name prod
# Bring your own credentials: connect stores your keys in vault
astroctl cloud aws selfHosted connect --access-key AKIA... --secret-key ... \
--account-id 123456789012 --region us-west-2 --cluster-name prod
# Or connect with an AWS profile
astroctl cloud aws selfHosted connect --profile astroplatform-admin \
--account-id 123456789012 --region us-west-2 --cluster-name prod
# Rotate the access key: replace the stack's access key, then replace the stored one
astroctl cloud aws selfHosted connect --account-id 123456789012 --region us-west-2 \
--from-stack prod-0a1b2c3d-astro-selfhosted --cluster-name prod --replace
# Cleanup everything
astroctl cloud aws selfHosted cleanup --account-id 123456789012 --region us-west-2 \
--cluster-name prod --profile admin
Options
Terminal
-h, --help help for selfHosted
Options inherited from parent commands
Terminal
-o, --output string Output format (table|json|yaml) (default "table")
SEE ALSO
- astroctl cloud aws - AWS cloud operations
- astroctl cloud aws selfHosted cleanup - Delete CloudFormation stack created by setup
- astroctl cloud aws selfHosted connect - Store your own AWS credentials in AstroPulse's encrypted vault
- astroctl cloud aws selfHosted disconnect - Delete the stored credentials from AstroPulse's encrypted vault
- astroctl cloud aws selfHosted forget - Forget a cluster's recorded setup
- astroctl cloud aws selfHosted setup - Deploy prerequisites and auto-store credentials in vault
- astroctl cloud aws selfHosted status - Show the recorded setup steps for a cluster