Mercurial > hgrepos > Python > libs > ConfigMix
comparison configmix/extras/aws.py @ 767:538a579cf6fe
Drop a note to use the new endpoint URL for the availability-zone
| author | Franz Glasner <f.glasner@feldmann-mg.com> |
|---|---|
| date | Mon, 19 Feb 2024 15:58:27 +0100 |
| parents | a90273abc8a4 |
| children | 665cc514a0cc |
comparison
equal
deleted
inserted
replaced
| 766:a90273abc8a4 | 767:538a579cf6fe |
|---|---|
| 33 # There is a new session-oriented IMDSv2 implementation using | 33 # There is a new session-oriented IMDSv2 implementation using |
| 34 # IPv4 (169.254.169.254) and IPv6 ([fd00:ec2::254]). | 34 # IPv4 (169.254.169.254) and IPv6 ([fd00:ec2::254]). |
| 35 # | 35 # |
| 36 URL_META_INSTANCEID = "http://169.254.169.254/latest/meta-data/instance-id" | 36 URL_META_INSTANCEID = "http://169.254.169.254/latest/meta-data/instance-id" |
| 37 URL_META_REGION = "http://169.254.169.254/latest/meta-data/placement/region" | 37 URL_META_REGION = "http://169.254.169.254/latest/meta-data/placement/region" |
| 38 # XXX FIXME: Use placement/availability-zone instead??? | |
| 38 URL_META_AVAILABILITY_ZONE = "http://169.254.169.254/latest/meta-data/availability-zone" | 39 URL_META_AVAILABILITY_ZONE = "http://169.254.169.254/latest/meta-data/availability-zone" |
| 39 URL_DYN_INSTANCE_IDENTITY_DOC = "http://169.254.169.254/latest/dynamic/instance-identity/document" | 40 URL_DYN_INSTANCE_IDENTITY_DOC = "http://169.254.169.254/latest/dynamic/instance-identity/document" |
| 40 TIMEOUT = 2 | 41 TIMEOUT = 2 |
| 41 # See https://gist.github.com/doublenns/7e3e4b72df4aaeccbeabf87ba767f44e | 42 # See https://gist.github.com/doublenns/7e3e4b72df4aaeccbeabf87ba767f44e |
| 42 RETRIES = urllib3.Retry(total=3, backoff_factor=0.3) | 43 RETRIES = urllib3.Retry(total=3, backoff_factor=0.3) |
