Comment 7 for bug 1904741

Balint Reczey (rbalint) wrote :

Verified on Groovy with 1.1.12+dfsg1-0ubuntu3.20.10.0:

ubuntu@ip-172-31-44-138:~$ bash -x /usr/share/ec2-instance-connect/eic_curl_authorized_keys ubuntu
...
++ /usr/bin/curl -s -f -m 1 -H 'X-aws-ec2-metadata-token: XXX==' http://169.254.169.254/latest/meta-data/services/domain/
+ domain=amazonaws.com
+ domain_exit=0
+ '[' 0 -ne 0 ']'
+ is_domain_valid=1
+ for valid_domain in amazonaws.com amazonaws.com.cn c2s.ic.gov sc2s.sgov.gov
+ '[' amazonaws.com = amazonaws.com ']'
+ is_domain_valid=0
+ break
+ '[' 0 -eq 1 ']'
++ /usr/bin/printf managed-ssh-signer.%s.%s us-east-2 amazonaws.com

...