From f54be30ce42410595c5417703450cfd55ce3fee1 Mon Sep 17 00:00:00 2001 From: Michele Cereda Date: Sat, 10 Feb 2024 18:03:31 +0100 Subject: [PATCH] chore: aws secretsmanager commands examples --- knowledge base/cloud computing/aws/cli.md | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/knowledge base/cloud computing/aws/cli.md b/knowledge base/cloud computing/aws/cli.md index cec494a..99c97ec 100644 --- a/knowledge base/cloud computing/aws/cli.md +++ b/knowledge base/cloud computing/aws/cli.md @@ -28,8 +28,23 @@ aws sagemaker list-endpoint-configs --output 'json' --query 'EndpointConfigs[].E # Describe all SageMaker EndpointConfigurations. aws sagemaker list-endpoint-configs … | xargs -n '1' aws sagemaker describe-endpoint-config --endpoint-config-name + + +# List secrets stored in Secret Manager. +aws secretsmanager list-secrets + +# Get information about secrets stored in Secret Manager. +aws secretsmanager describe-secret --secret-id 'ecr-pullthroughcache/docker-hub' + +# Get secrets from Secret Manager. +aws secretsmanager get-secret-value --secret-id 'ecr-pullthroughcache/github' ``` +Non listed subcommand: + +- [`aws ecr`][ecr tldr] +- [`aws s3`][s3 tldr] + ## Profiles ```sh @@ -54,6 +69,7 @@ $ export AWS_PROFILE="work" ## Further readings +- [AWS] - CLI [quickstart] - [Configure profiles] in the CLI @@ -61,6 +77,11 @@ $ export AWS_PROFILE="work" References --> + +[aws]: README.md +[ecr tldr]: ecr.md#tldr +[s3 tldr]: s3.md#tldr + [quickstart]: https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-quickstart.html [configure profiles]: https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-profiles.html