Skip to content

[WIP] Composite EC2 Plugin for Metadata#8

Open
naftulikay wants to merge 12 commits intomasterfrom
feature/ec2-metadata
Open

[WIP] Composite EC2 Plugin for Metadata#8
naftulikay wants to merge 12 commits intomasterfrom
feature/ec2-metadata

Conversation

@naftulikay
Copy link
Copy Markdown
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 naftulikay force-pushed the feature/ec2-metadata branch from 6caba57 to 438906a Compare June 19, 2019 18:48
@naftulikay
Copy link
Copy Markdown
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