Skip to content
This repository has been archived by the owner on Jul 16, 2024. It is now read-only.

Hard Coded Instance Id is not working #9

Open
rasekar2000 opened this issue Mar 9, 2017 · 1 comment
Open

Hard Coded Instance Id is not working #9

rasekar2000 opened this issue Mar 9, 2017 · 1 comment

Comments

@rasekar2000
Copy link

https://github.com/awslabs/ecs-refarch-service-discovery/blob/master/microservices/twitch/src/twitch.go#L199

cmdArgs := []string{"-s", "http://169.254.169.254/latest/meta-data/instance-id"}

Is this URL hardcoded ? can we please know the better way to get instance-id?

Thanks in advance.

@schmutze
Copy link
Contributor

schmutze commented Mar 9, 2017

Hi @rasekar2000, this is the correct way to retrieve the instance-id on a running EC2 instance. Please see:
http://amzn.to/2mMmjMW

Can you clarify what is not working?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants