Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add property to configure for your own endpoint url #134

Open
djemerson01 opened this issue Jan 24, 2018 · 0 comments
Open

Add property to configure for your own endpoint url #134

djemerson01 opened this issue Jan 24, 2018 · 0 comments

Comments

@djemerson01
Copy link

Adding the ability to set your own endpoint url would make it possible to use this plugin with Localstack. For instance, I can easily create my own endpoint configuration to be passed to the S3 client builder for use with Localstack as follows:

public static AmazonS3 s3Client()
{
    AwsClientBuilder.EndpointConfiguration endpoint =
        new AwsClientBuilder.EndpointConfiguration("http://localhost:4572",
            "us-east-2");

    return AmazonS3ClientBuilder
        .standard()
        .withPathStyleAccessEnabled(true)
        .withEndpointConfiguration(endpoint)
        .withCredentials(new AWSStaticCredentialsProvider(new AnonymousAWSCredentials()))
        .build();
}

If I could just set the endpoint URL as a property, I'd be able to run your plugin against Localstack. This seems like an easy fix. Let me know if I'm missing something obvious.

Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants