title: spring cloud AWS detect if running local
body: <p>I'm looking for a quick, easy way for my Boot code to detect whether it is running on AWS or not (as opposed to local environment).  </p>
  
  <p>The only thing I could think of was to attempt to access some instance metadata, like @Value("${ami-id:N/A}") String ami;, then do an if check.  I could make this a @Conditional, but I was hoping something like this might be provided already by the framework (i.e. how the "cloud" profile is automatically active when running on Cloud Foundry)</p>