|
I've had similar behavior from EC2MetadataUtils called from an ECS task. Solution was to increase the LaunchTemplate HttpPutResponseHopLimit to 2 from the default 1. Discovered this when I changed the task networking awsvpc -> bridge mode. EC2MetadataUtils worked fine in vpc but gave a null InstanceId in bridge mode. (Bridge mode adds an extra 'hop' onto the host.)
|
# ¿ Mar 1, 2024 06:31 |
|
|
# ¿ May 12, 2024 03:34 |