astroctl cloud aws selfHosted connect
Store your own AWS credentials in AstroPulse's encrypted vault
Synopsis
Send AWS credentials to AstroPulse, which checks them against your account and stores them in its encrypted vault only when every check passes.
AstroPulse checks the credentials reach the account (STS identity), the state store bucket is accessible and the service-linked role exists, then records the result on the cluster's setup ('astroctl cloud aws selfHosted status').
Only long-lived IAM user keys are accepted. Temporary credentials (with session tokens) are rejected: use 'setup' to create a dedicated IAM user.
Keys the setup stack created are stored only in the organization that started the setup, and only for the setup's IAM user. To bring your own IAM user's keys instead, pass --without-setup: they are then stored in the organization astroctl is signed in to, which connect names before sending them.
Credentials must be provided explicitly:
1. --from-stack: reads the keys from the setup stack's outputs with your aws CLI
(--profile then names the AWS profile used to read the stack)
2. --access-key / --secret-key flags
3. --profile flag (reads from ~/.aws/credentials)
astroctl cloud aws selfHosted connect [flags]
Examples
# Check vault status
astroctl cloud aws selfHosted connect --cluster-name prod
# Send the keys the setup stack created
astroctl cloud aws selfHosted connect --account-id 123456789012 --region us-west-2 \
--from-stack prod-0a1b2c3d-astro-selfhosted --cluster-name prod
# Rotate: send the stack's current keys in place of the stored ones
astroctl cloud aws selfHosted connect --account-id 123456789012 --region us-west-2 \
--from-stack prod-0a1b2c3d-astro-selfhosted --cluster-name prod --replace
# Bring your own credentials via AWS profile, with no setup
astroctl cloud aws selfHosted connect --profile my-iam-user --account-id 123456789012 \
--region us-west-2 --cluster-name prod --without-setup
# Bring your own credentials via explicit keys, with no setup
astroctl cloud aws selfHosted connect --account-id 123456789012 --region us-west-2 \
--access-key AKIA... --secret-key ... --cluster-name prod --without-setup
Options
--access-key string AWS access key ID
--account-id string AWS account ID (12 digits)
--bucket string State store bucket (defaults to the bucket setup creates)
--cluster-name string Cluster name for this connection (required)
--from-stack string Setup stack to read the keys from (its AccessKey and SecretKey outputs)
-h, --help help for connect
--profile string AWS profile name from ~/.aws/credentials
--region string AWS region (e.g., us-west-2)
--replace Replace the credentials already stored for the cluster, to rotate them
--secret-key string AWS secret access key
--without-setup Store credentials you made yourself, with no setup for the cluster: they are stored in the organization astroctl is signed in to, which connect names before sending them
Options inherited from parent commands
-o, --output string Output format (table|json|yaml) (default "table")
SEE ALSO
- astroctl cloud aws selfHosted - Self-hosted cluster prerequisite management