Spring Boot Starter - AWS Support
This minimal Spring-Boot-Starter is a very simple EnvironmentPostProcessor
that detects whether an application is running on AWS or not. It utilizes the EC2MetadataUtils
to fetch some details about the AWS environment it's running on.
Usage
Simply add the JAR as a dependency to your project. It is available via Maven Central.
Maven
Add the following to your pom.xml
<dependency>
<groupId>org.zalando</groupId>
<artifactId>aws-support-spring-boot-starter</artifactId>
<version>${aws-support-spring-boot-starter.version}</version>
</dependency>
Gradle
Add the following to your build.gradle
compile('org.zalando:aws-support-spring-boot-starter:$aws-support-spring-boot-starter.version')
Download
You can download the .jar
artifacts directly from the Releases page here on GitHub.
Exposed Properties
If the application is starting on AWS it will provide/set the following properties.
Property | Description |
---|---|
aws.az | Availability-Zone |
aws.region | Region |
aws.localhostname | Hostname |
aws.localipv4 | IP ( v. 4) |
aws.instanceid | Instance-Id |
Contributing
Issues
Found a bug or have an idea for a feature? You can help us by creating an issue. Just make sure that an issue describing the bug or feature does not already exist. You can go even further and open a Pull Request with the fix or proposed feature.
Pull Requests
Follow these steps to contribute your work to Spring Boot Starter - AWS Support:
- Open an issue describing the problem or proposed feature. Assign yourself so we know you're working on it.
- Fork this repo and create a branch for your work.
- Push changes to your branch.
- Test your changes.
- Open a Pull Request when your code is ready for review.
- Mention the issue number in the comment (e.g. Fixes #37).
- If you're still working on it, add the under development label.
- We will review your PR, give feedback, and merge when it is ready.
Thanks for your contribution!
TODO
There are no further features planned at the moment. But we are open for any suggestions that should be added.
Contact
Simply open an issues and assign the question label or reach out to any of the maintainers.
Licence
The MIT License (MIT) Copyright © 2016 Zalando SE, https://tech.zalando.com
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.