Giter Club home page Giter Club logo

spring-s3-properties-loader's People

Contributors

abhimanyuseth-kiva avatar ericdallo avatar larsgberggren avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

spring-s3-properties-loader's Issues

Add 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

when added this dependancy to springboot app, nothing works

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)

System env variable

I don't think this is working as intended:
@S3PropertiesLocation(value = "${AWS_S3_LOCATION}", profiles = "developer")

From the code:
https://github.com/ericdallo/spring-s3-properties-loader/blob/master/src/main/java/com/spring/loader/util/SystemPropertyResolver.java#L48

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.

Doesn't work with ConfigurationProperty?

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.

Not loading the file from S3

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.