-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for user-data from ec2metadata service #852
Comments
thanks for contacting us @misham. The SDK has basic EC2 meta data access with the the Is this what your looking for, or is there a specific metadata path that would be helpful for the SDK to parse? |
I took a second look at the |
Adds the `GetUserData` method to `EC2Metadata` client. This allows you to get instance user data from the `/latest/user-data` EC2 metadata endpoint. If the instance does not have any data set the error code `NotFoundError` will be returned. If any data is set that value as a string will be returned by the method. Fix aws#852
Adds the `GetUserData` method to `EC2Metadata` client. This allows you to get instance user data from the `/latest/user-data` EC2 metadata endpoint. If the instance does not have any data set the error code `NotFoundError` will be returned. If any data is set that value as a string will be returned by the method. Fix #852
Wow, that was fast. Thank you! I'll test it out in the next couple of days. |
I don't want to allow an instance to use EC2 service to query user-data in general and would like to rely on metadata service instead, since that does not require any permissions.
The text was updated successfully, but these errors were encountered: