ericdallo / spring-s3-properties-loader Goto Github PK
View Code? Open in Web Editor NEWSpring component to load external properties from AWS S3
Home Page: https://ericdallo.github.io/spring-s3-properties-loader/
License: MIT License
Spring component to load external properties from AWS S3
Home Page: https://ericdallo.github.io/spring-s3-properties-loader/
License: MIT License
Did you consider adding a license to your project? This makes it easier for others to use it and also enables potential contribution.
Best
Unable to retrieve the requested metadata (/latest/dynamic/instance-identity/document). Failed to connect to service endpoint:
lot of dependancy issues, there is no S3 config from this library, consumers needs to research to add this , can u prove from a client on how this library helps to load application properties from s3 at spring boot startup(deployment time)
I don't think this is working as intended:
@S3PropertiesLocation(value = "${AWS_S3_LOCATION}", profiles = "developer")
We can see that the value comes from String valueFromEnv = System.getenv(key);
the env variables.
However, it would be better to fallback into System.getProperties
. This way we can pass -D
params to the JVM.
This is particularly useful with AWS beanstalk with sets env variables as -D
params on the JVM.
I'm trying to load a configuration object from a YAML file in S3.
My YAML file is
test:
s3property: "Success!!"
I have
@Configuration
@S3PropertiesLocation("testbucket/config/test.yaml")
class S3Config {
}
And
@Component
@ConfigurationProperties("test")
class TestConfig {
var s3property: String = ""
}
When I Autowire TestConfig, it doesn't hold any value in s3property.
However, it works if I explicitly add @value annotation to read the property.
@Component
@ConfigurationProperties("test")
class TestConfig {
@Value("\${s3property}")
var s3property: String = ""
}
Using @value annotation is not practical since I have an object with map of lists.
I would like to be able to read the configuration into an object like we can with Spring application.yaml.
I'm using the 2.0.0 version, like this
@Configuration
@S3PropertiesLocation("s3://example/example-dev/application.yml")
@Import({CommandConfiguration.class,
C4SDKConfiguration.class})
public class AppClassConfig {
But the app is starting without an application.yml file
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.