Skip to content
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

[WIP] Composite EC2 Plugin for Metadata #8

Open
wants to merge 12 commits into
base: master
Choose a base branch
from

Conversation

naftulikay
Copy link
Owner

@naftulikay naftulikay commented Jun 18, 2019

Tags also will be forthcoming, but in a different PR.

Strategy

  • Use a HEAD request to http://169.254.169.254/ and examine response code and Server header, expect EC2ws, otherwise stop detecting facts.
  • Instead of using a recursive stack approach, use a generator and return a list of (String, String) where the first value is the path and the second value is the payload.
  • For /public-keys/, each entry will be %d=%s, where %d is a zero-indexed number and %s is the name of the key. When recursing, check public-keys/%d/%s to get the key fingerprint.
  • For JSON responses, attempt to deserialize into a Map.

Tags also will be forthcoming, but in a different PR.
@naftulikay
Copy link
Owner Author

trying to reason about the futures lifecycle:

Recursive Futures Logic

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

Successfully merging this pull request may close these issues.

1 participant