Replies: 1 comment 11 replies
-
From inspecting the // Building a SdkConfig from the wasm app configuration:
impl From<&Config> for SdkConfig {
fn from(conf: &Config) -> Self {
SdkConfig::builder()
.region(Region::new(conf.region.clone()))
.credentials_provider(SharedCredentialsProvider::new(Credentials::from_keys(
&conf.access_key_id.0,
&conf.secret_access_key.0,
None,
)))
.build()
}
} And then this assertion fails when I call it let shared_config = SdkConfig::from(&config);
shared_config
.endpoint_resolver()
.ok_or_else(|| Error::Invocation {
message: "The shared config does not have an endpoint resolver!!".to_string(),
})?;
let config = aws_sdk_cloudwatch::config::Builder::from(&shared_config)
.retry_config(RetryConfig::disabled())
.build();
// ... Since I'm never mentioning an override of the endpoint resolver, I was expecting to obtain a default one that works. I'm mostly trying to avoid |
Beta Was this translation helpful? Give feedback.
11 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I'm currently implementing my own connector adapter to use the SDK in a wasm binary with custom bindings:
Everything works fine, except that the request
req
doesn't contain the endpoint I want to hit for some reason.req.uri()
is just/
for a request to list metrics in cloudwatch:Request { method: POST, uri: /, version: HTTP/1.1, headers: {"content-type": "application/x-www-form-urlencoded", "content-length": "94"}, body: SdkBody { inner: Once(Some(b"Action=ListMetrics&Version=2010-08-01&Namespace=AWS%2FRDS&MetricName=MaximumUsedTransactionIDs")), retryable: true } }
is what I'm getting as
req
basically (with some parameters added to the query). How would I get back the base URL to use to make the request?Beta Was this translation helpful? Give feedback.
All reactions