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

Adding AWS metadata #33

Merged
merged 5 commits into from
Jan 20, 2016
Merged

Adding AWS metadata #33

merged 5 commits into from
Jan 20, 2016

Conversation

jquatier
Copy link
Owner

See #32 for more information.

@jquatier jquatier added this to the 2.0 milestone Jan 20, 2016
@@ -69,6 +69,38 @@ var appInfo = client.getInstancesByAppId('YOURSERVICE');
var appInfo = client.getInstancesByVipAddress('YOURSERVICEVIP');
```

## Configuring for AWS environments

For AWS environments (`dataCenterInfo.name` == `Amazon`) the client has built-in logic to request the AWS metadata that the Eureka
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You probably should put the == in the code block.

/*
Utility class for pulling AWS metadata that Eureka requires when registering as an Amazon instance (datacenter).
*/
export class AwsMetadata {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be called AWSMetadata?

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah I went back and forth on that...
https://www.approxion.com/?p=303
http://stackoverflow.com/questions/15526107/acronyms-in-camelcase

I could go either way. I'll let @daveedgarcia chime in. :)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah it's really tricky. I generally think that acronyms should be caps (especially when it's always stylized that way), but I'm fine if we think otherwise.

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah I think it gets weird when you have more than one acronym in a single instance.
HTTPURLConnection
HttpUrlConnection

Etc.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah agreed. Let's just standardize on all caps + snake. HTTP_URL_Connection. :trollface:

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since usage of this class is encapsulated in the client... I'm going to say this doesn't matter anyway.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sounds good to me.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

With @kesne on this one but yeah doesn't matter.

@kesne
Copy link
Contributor

kesne commented Jan 20, 2016

LGTM other than one comment on naming.

jquatier added a commit that referenced this pull request Jan 20, 2016
@jquatier jquatier merged commit 2c860ea into master Jan 20, 2016
@jquatier jquatier deleted the 2.0 branch January 20, 2016 04:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants