mirror of
https://gitea.com/mcereda/oam.git
synced 2026-02-09 21:54:24 +00:00
chore(kb/awscli): add or improve command examples
This commit is contained in:
@@ -24,11 +24,28 @@ aws configure --profile 'work'
|
||||
export AWS_PROFILE='work'
|
||||
|
||||
|
||||
# Enable auto-prompt mode (like aws-shell).
|
||||
# Enable auto-prompt mode (like `aws-shell` does).
|
||||
aws configure set 'cli_auto_prompt' 'on-partial'
|
||||
export AWS_CLI_AUTO_PROMPT='on'
|
||||
|
||||
|
||||
# List applications in CodeDeploy.
|
||||
aws deploy list-applications
|
||||
|
||||
# List deployment groups defined for applications.
|
||||
aws deploy list-deployment-groups --application-name 'batman'
|
||||
|
||||
# Show details of deployment groups.
|
||||
aws deploy get-deployment-group --application-name 'batman' \
|
||||
--deployment-group-name 'production'
|
||||
|
||||
|
||||
|
||||
# Show RDS instances.
|
||||
aws rds describe-db-instances
|
||||
aws rds describe-db-instances --output 'json' --query "DBInstances[?(DBInstanceIdentifier=='master-prod')]"
|
||||
|
||||
|
||||
# List all SageMaker EndpointConfigurations' names.
|
||||
aws sagemaker list-endpoint-configs --output 'yaml-stream' | yq -r '.[].EndpointConfigs[].EndpointConfigName' -
|
||||
aws sagemaker list-endpoint-configs --output 'yaml-stream' --query 'EndpointConfigs[].EndpointConfigName' | yq -r '.[].[]' -
|
||||
@@ -49,6 +66,10 @@ aws secretsmanager describe-secret --secret-id 'ecr-pullthroughcache/docker-hub'
|
||||
aws secretsmanager get-secret-value --secret-id 'ecr-pullthroughcache/github'
|
||||
|
||||
|
||||
# List SNS queues (a.k.a. 'topics').
|
||||
aws sns list-topics
|
||||
|
||||
|
||||
# Start sessions via Session Manager.
|
||||
aws ssm start-session --target 'i-0123456789abcdef0'
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user