Difference between revisions of "Aws cli: Auto-prompt"
Jump to navigation
Jump to search
Line 8: | Line 8: | ||
awscli_completion_on () { | awscli_completion_on () { | ||
$(export [[AWS_CLI_AUTO_PROMPT]]=on) | $(export [[AWS_CLI_AUTO_PROMPT]]=on) | ||
+ | echo "AWS_CLI_AUTO_PROMT set to on" | ||
} | } | ||
awscli_completion_off () { | awscli_completion_off () { | ||
$(export AWS_CLI_AUTO_PROMPT=off) | $(export AWS_CLI_AUTO_PROMPT=off) | ||
+ | echo "AWS_CLI_AUTO_PROMT set to off" | ||
} | } | ||
Revision as of 08:00, 29 August 2021
aws_cli_auto_prompt export AWS_CLI_AUTO_PROMPT=on
awscli_completion_on () { $(export AWS_CLI_AUTO_PROMPT=on) echo "AWS_CLI_AUTO_PROMT set to on" } awscli_completion_off () { $(export AWS_CLI_AUTO_PROMPT=off) echo "AWS_CLI_AUTO_PROMT set to off" }
Related terms
- Bash completion
AWS_CLI_AUTO_PROMPT
--no-cli-auto-prompt
AWS_PROFILE
See also
- 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: