Difference between revisions of "Aws cli: Auto-prompt"
Jump to navigation
Jump to search
m (Welcome moved page Auto-prompt to Aws cli: Auto-prompt) |
|||
(10 intermediate revisions by the same user not shown) | |||
Line 3: | Line 3: | ||
https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-envvars.html#envvars-list-aws_cli_auto_prompt | https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-envvars.html#envvars-list-aws_cli_auto_prompt | ||
aws_cli_auto_prompt | aws_cli_auto_prompt | ||
− | export AWS_CLI_AUTO_PROMPT=on | + | [[export]] AWS_CLI_AUTO_PROMPT=on |
+ | |||
+ | |||
+ | awscli_completion_on () { | ||
+ | $([[export]] [[AWS_CLI_AUTO_PROMPT]]=on) | ||
+ | echo "AWS_CLI_AUTO_PROMPT set to on" | ||
+ | } | ||
+ | |||
+ | awscli_completion_off () { | ||
+ | $(export AWS_CLI_AUTO_PROMPT=off) | ||
+ | echo "AWS_CLI_AUTO_PROMPT set to off" | ||
+ | } | ||
== Related terms == | == Related terms == | ||
* [[Bash completion]] | * [[Bash completion]] | ||
+ | * <code>[[AWS_CLI_AUTO_PROMPT]]</code> | ||
+ | * To disable it: <code>[[aws --no-cli-auto-prompt]]</code> | ||
+ | * <code>[[AWS_PROFILE]]</code> | ||
== See also == | == See also == | ||
+ | * {{aws configure}} | ||
* {{aws cli}} | * {{aws cli}} | ||
[[Category:AWS]] | [[Category:AWS]] |
Latest revision as of 19:30, 29 September 2022
aws_cli_auto_prompt export AWS_CLI_AUTO_PROMPT=on
awscli_completion_on () { $(export AWS_CLI_AUTO_PROMPT=on) echo "AWS_CLI_AUTO_PROMPT set to on" } awscli_completion_off () { $(export AWS_CLI_AUTO_PROMPT=off) echo "AWS_CLI_AUTO_PROMPT set to off" }
Related terms[edit]
- Bash completion
AWS_CLI_AUTO_PROMPT
- To disable it:
aws --no-cli-auto-prompt
AWS_PROFILE
See also[edit]
aws configure [ list-profiles | sso | sso-session | set ]
,~/.aws/config
,.aws/credentials
,mfa_serial
, AWS cli environmental variables:AWS_PROFILE
,AWS_REGION, AWS_DEFAULT_REGION, AWS_SESSION_TOKEN, AWS_ROLE_SESSION_NAME
,.aws/
, AWS functions,--profile, viawsconfig, viawscredentials
- AWS CLI,
aws
[configure
|iam
|ec2
|ecs
|eks
|s3
|rds
|sts
|cloudwatch
|cloudformation
|cloudfront
|eventbridge
|lambda
],aws configure list
,.aws/credentials
,.aws/config
,~/.aws/cli/alias
,--output [ table | json | text | XXX ]
, Aws cli environmental variables:AWS_PROFILE
,AWS_DEFAULT_REGION, AWS_REGION
,AWS_CLI_AUTO_PROMPT
,AWS_SESSION_TOKEN
,aws list all
,auto-prompt
,--version
,whoamiaws, --filters, --help
Advertising: