# HG changeset patch # User Franz Glasner # Date 1708355310 -3600 # Node ID 665cc514a0cc19b401dc8ae31364b85e32111704 # Parent 538a579cf6fe4a88c97ac274a3ab06be8b27b250 Also get the AWS partition metadata because it is used in AWS ARNs diff -r 538a579cf6fe -r 665cc514a0cc configmix/extras/aws.py --- a/configmix/extras/aws.py Mon Feb 19 15:58:27 2024 +0100 +++ b/configmix/extras/aws.py Mon Feb 19 16:08:30 2024 +0100 @@ -37,6 +37,7 @@ URL_META_REGION = "http://169.254.169.254/latest/meta-data/placement/region" # XXX FIXME: Use placement/availability-zone instead??? URL_META_AVAILABILITY_ZONE = "http://169.254.169.254/latest/meta-data/availability-zone" +# XXX FIXME: also get the partition (to be used in AWS ARNs) URL_DYN_INSTANCE_IDENTITY_DOC = "http://169.254.169.254/latest/dynamic/instance-identity/document" TIMEOUT = 2 # See https://gist.github.com/doublenns/7e3e4b72df4aaeccbeabf87ba767f44e