Dropwizard S3 Configuration Provider

Configuration provider for the Dropwizard application framework to load the application configuration from an S3 URI.

License

License

Categories

Categories

DropWizard Container Microservices config Application Layer Libs Configuration
GroupId

GroupId

com.brightcove
ArtifactId

ArtifactId

dropwizard-s3-config
Last Version

Last Version

1.0.0
Release Date

Release Date

Type

Type

jar
Description

Description

Dropwizard S3 Configuration Provider
Configuration provider for the Dropwizard application framework to load the application configuration from an S3 URI.
Project URL

Project URL

https://github.com/zencoder/dropwizard-s3-config
Source Code Management

Source Code Management

https://github.com/zencoder/dropwizard-s3-config.git

Download dropwizard-s3-config

How to add to project

<!-- https://jarcasting.com/artifacts/com.brightcove/dropwizard-s3-config/ -->
<dependency>
    <groupId>com.brightcove</groupId>
    <artifactId>dropwizard-s3-config</artifactId>
    <version>1.0.0</version>
</dependency>
// https://jarcasting.com/artifacts/com.brightcove/dropwizard-s3-config/
implementation 'com.brightcove:dropwizard-s3-config:1.0.0'
// https://jarcasting.com/artifacts/com.brightcove/dropwizard-s3-config/
implementation ("com.brightcove:dropwizard-s3-config:1.0.0")
'com.brightcove:dropwizard-s3-config:jar:1.0.0'
<dependency org="com.brightcove" name="dropwizard-s3-config" rev="1.0.0">
  <artifact name="dropwizard-s3-config" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.brightcove', module='dropwizard-s3-config', version='1.0.0')
)
libraryDependencies += "com.brightcove" % "dropwizard-s3-config" % "1.0.0"
[com.brightcove/dropwizard-s3-config "1.0.0"]

Dependencies

provided (2)

Group / Artifact Type Version
io.dropwizard : dropwizard-configuration jar 0.8.4
com.amazonaws : aws-java-sdk jar 1.10.20

Project Modules

There are no modules declared in this project.

dropwizard-s3-config

Dropwizard provider to retrieve application configuration from an S3 URI.

Maven

<dependency>
  <groupId>com.brightcove</groupId>
  <artifactId>dropwizard-s3-config</artifactId>
  <version>1.0.0</version>
</dependency>

Gradle

    dependencies {
        compile(
        ...
                'com.brightcove:dropwizard-s3-config:1.0.0',

Usage

Simply set the ConfigurationSourceProvider in the initialize method to refer to an S3ConfigurationProvider instance:

public class MyApplication extends Application<MyConfiguration> {

    @Override
    public void initialize(Bootstrap<MyConfiguration> bootstrap) {
        // load configuration from an S3 URI
	    bootstrap.setConfigurationSourceProvider(new S3ConfigurationProvider());
    }
}

Configuration

S3 URI

Supply the S3 URI for the configuration file to the server Dropwizard command. For example:

java -jar target/my-app.jar server s3://bucket/key/config.yml

Environment Variables

Name Purpose Required?
AWS_ACCESS_KEY Access key ID Yes
AWS_SECRET_ACCESS_KEY Secret Access Key Yes
AWS_S3_ENDPOINT Alternate endpoint for S3 server, useful for testing against a local fake S3 server No
AWS_REGION AWS region to use when accessing S3 No
com.brightcove

Zencoder

Versions

Version
1.0.0