@@ -31,7 +31,7 @@ source "$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)/log.sh"
31
31
# https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/configuring-instance-metadata-service.html
32
32
#
33
33
# If you prefer to use Instance Metadata service version 2, you can do so by setting the environment variable:
34
- # export GRUNTWORK_BASH_COMMONS_IMDSV ="2"
34
+ # export GRUNTWORK_BASH_COMMONS_IMDS_VERSION ="2"
35
35
function aws_get_instance_metadata_version_in_use {
36
36
using=${GRUNTWORK_BASH_COMMONS_IMDS_VERSION:- $default_instance_metadata_version }
37
37
assert_value_in_list " Instance Metadata service version in use" " $using " " 1" " 2"
@@ -50,7 +50,7 @@ function aws_get_instance_metadata_version_in_use {
50
50
# modules are being updated to use IMDSv2.
51
51
#
52
52
# Version 1 is the default, but can be overridden by setting:
53
- # env var GRUNTWORK_BASH_COMMONS_IMDSV =2
53
+ # env var GRUNTWORK_BASH_COMMONS_IMDS_VERSION =2
54
54
function aws_lookup_path_in_instance_metadata {
55
55
local -r path=" $1 "
56
56
version_in_use=$( aws_get_instance_metadata_version_in_use)
@@ -66,7 +66,7 @@ function aws_lookup_path_in_instance_metadata {
66
66
# modules are being updated to use IMDSv2.
67
67
#
68
68
# Version 1 is the default, but can be overridden by setting:
69
- # env var GRUNTWORK_BASH_COMMONS_IMDSV =2
69
+ # env var GRUNTWORK_BASH_COMMONS_IMDS_VERSION =2
70
70
function aws_lookup_path_in_instance_dynamic_data {
71
71
local -r path=" $1 "
72
72
version_in_use=$( aws_get_instance_metadata_version_in_use)
0 commit comments