Skip to content

Implement IResourceWithEndpoints instead of IResourceWithConnectionString #12

@brendonparker

Description

@brendonparker

Wondering why you went with IResourceWithConnectionString (for databases) over IResourceWithEndpoints?

Ask

It'd be nice if I could do something like:

var localStack = builder.AddLocalStack();
 
var api = builder
    .AddProject<MyApi>("api")
    .WithExternalHttpEndpoints()
    .WithEnvironment("AWS_ENDPOINT_URL_SQS", localStack.GetEndpoint("http"));

Reasoning

I'd like to not need to bring in all the localstack client dependencies into my application. For something simple, like just using SQS, the AWS_ENDPOINT_URL_SQS should do the trick and get picked up by the native AWS SDK for .NET.

Notes

Standard Interfaces

Thank you!

Metadata

Metadata

Assignees

Labels

enhancementNew feature or requestneeds reviewFurther consideration needed

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions