astroctl cloud aws selfHosted setup
Deploy prerequisites and auto-store credentials in vault
Synopsis
Deploy a CloudFormation stack that creates the required AWS resources for running a self-hosted Kubernetes cluster, then store the generated credentials in AstroPulse's encrypted vault.
AstroPulse plans the setup, hands back the CloudFormation link and the create-stack command, checks the credentials against your account before storing them, and records every step: 'astroctl cloud aws selfHosted status'.
After setup completes, your cluster YAML uses vault credentials:
Terminal
provisioner:
type: selfHosted
selfHosted:
accountId: "123456789012"
bucketName: "acme-cluster-state" # the bucket setup created
credentials:
type: Vault
Resources created:
Terminal
- IAM User and Group with 8 managed policies (S3, EC2, EventBridge, Route53, SQS, VPC, IAM,
and read-only Service Quotas)
- S3 bucket for Kubernetes state store (versioned)
- SQS queue for event processing
When deployed via AWS CLI (option 1), credentials are read from the stack outputs and sent to AstroPulse, so no manual copy needed.
Terminal
astroctl cloud aws selfHosted setup [flags]
Examples
Terminal
# Deploy via AWS CLI with a profile (easiest)
astroctl cloud aws selfHosted setup --account-id 123456789012 --region us-west-2 \
--cluster-name prod --profile admin
# Interactive setup via AWS Console
astroctl cloud aws selfHosted setup --account-id 123456789012 --region us-west-2 --cluster-name prod
# Save template for IaC pipeline
astroctl cloud aws selfHosted setup --account-id 123456789012 --region us-west-2 \
--cluster-name prod --output-template ./selfhosted-cf.yaml
Options
Terminal
--account-id string AWS account ID (12 digits) (required)
--cluster-name string Cluster name (used for resource naming) (required)
-h, --help help for setup
--output-template string Save CloudFormation template to file and exit
--profile string AWS profile for deploying via AWS CLI (skips browser)
--region string AWS region (e.g., us-west-2) (required)
Options inherited from parent commands
Terminal
-o, --output string Output format (table|json|yaml) (default "table")
SEE ALSO
- astroctl cloud aws selfHosted - Self-hosted cluster prerequisite management