Comments (7)
This isn't currently possible, but it would be a welcome change.
from aws-sdk-go.
Thanks, we'll look into submitting a PR for this.
from aws-sdk-go.
Hi @stripecodahale, my colleague @mrdg and I have discussed a possible implementation for this feature. We want to quickly run that by you before we start hacking on it :-).
So, our proposal is to add an overrides
map to the endpoints
package, containing tuples of service name (e.g. "ec2"
) and endpoint (e.g. "http://localhost:1234"
). This overrides map has precedence over the existing code in endpoints.Lookup()
, allowing one to override one or more service endpoints for local testing.
If you're OK with this, we'll submit the PR as soon as possible.
from aws-sdk-go.
As long as the overrides are for specific regions β e.g. endpoints.Add("test1", etc)
βit sounds good.
from aws-sdk-go.
I'm not sure I understand what you mean. Can you elaborate on what the region specifier should do in the context of a local service endpoint override? Thanks π
from aws-sdk-go.
Sorry, that was vague. I'm going through email before having coffee. :)
I mean, I'd want to provide the ability to add test regions with specific endpoints rather than redefine the behavior of existing regions. Essentially, just add a region name to the (service, endpoint) tuple.
This way, test code could e.g. safely depend on a test-1
region instead of modifying the behavior of an existing region.
from aws-sdk-go.
Heh, no problem!
Alright, sounds good. We'll probably have a PR for this in the coming days.
from aws-sdk-go.
Related Issues (20)
- InvalidSignatureException when using custom httpclient HOT 7
- PutObjectWithContext SerializationError: failed to determine start of request body HOT 2
- Cost Explorer Api. Can't group request by Tag. HOT 2
- Support EFS replication overwrite protection values HOT 4
- Token provider in EC2 metadata does not respect the logging decision HOT 3
- Context canceled error on sfn.StartExecutionWithContext after lib update HOT 2
- Failed to create fleet instance: InvalidParameterValue: Parameter 'amiIdList' cannot be empty. HOT 2
- No EC2 IMDS role found HOT 4
- S3 GetObjectRequest flakily has empty RequestID HOT 2
- RequestContext.Authorizer differs between REST gateway vs HTTP gateway HOT 2
- sso-session config file section doen't work. HOT 5
- identitystore apis failing with url error HOT 2
- Panic / segfault (SIGSEGV) during an active EC2 ssh session (with aws ssm & SSO) HOT 2
- PutObject does not add Content-Length in the headers when it is specified in the parameters and the body is not Seekable HOT 2
- Calling ListBucket result error, only return partial result HOT 1
- SSO Cache filename should be based on `sso_session` in addition to `sso_start_url` HOT 4
- For outbound https/tls connections please have the tls server name set HOT 2
- Cannot use ml.t3.medium in region due to validation HOT 2
- SQS ReceiveMessageWithContext: SerializationError: failed to unmarshal response error HOT 5
- AWS Glue: BIGQUERY connection type support HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from aws-sdk-go.