From 877a64f17da89c49b82fbb3ee38b9aae4cb833fd Mon Sep 17 00:00:00 2001 From: Kenneth Daily Date: Tue, 24 Nov 2020 13:40:45 -0800 Subject: [PATCH] Add documentation for the AWS_EC2_METADATA_DISABLED environment variable. Fixes aws/aws-cli#5623. --- doc_source/cli-configure-envvars.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/doc_source/cli-configure-envvars.md b/doc_source/cli-configure-envvars.md index 8c494d9..2039f6c 100644 --- a/doc_source/cli-configure-envvars.md +++ b/doc_source/cli-configure-envvars.md @@ -81,6 +81,10 @@ If defined, this environment variable overrides the value for the profile settin Specifies the AWS Region to send the request to\. If defined, this environment variable overrides the value for the profile setting `region`\. You can override this environment variable by using the `--region` command line parameter\. +[`AWS_EC2_METADATA_DISABLED`](cli-configure-metadata.md) +Disables the use of the AWS EC2 instance metadata service (IMDS)\. +If set to false, user credentials or configuration (like the region) are not requested from IMDS\. + [`AWS_MAX_ATTEMPTS`](cli-configure-files.md#cli-config-max_attempts) Specifies a value of maximum retry attempts the AWS CLI retry handler uses, where the initial call counts toward the value that you provide\. For more information on retries, see [AWS CLI retries](cli-configure-retries.md)\. If defined, this environment variable overrides the value for the profiles setting `max_attempts`\.