Prefacing this issue with the fact that it could be my misconfiguring.
I'm currently having trouble posting a message back to a connection via a Websocket API.
I've tried a few things such as getting credentials using some of the methods I've seen around github but whichever way I do try I just haven't managed to crack the right combination.
I have a lambda role which I usually set privs there but it doesn't seem to even work when I give it full admin. I assumed action execute-api:ManageConnections would suffice?
Expected Behavior
I just expected either a less confusing error message or a success :D
// not 100% certain what endpoint url it needs here?
// https://xxxxx.execute-api.xx-xx-xx.amazonaws.com/dev/@connections ??
let endpoint_url = "xxxxxx";
let config = SdkConfig::builder()
.endpoint_url(endpoint_url)
.behavior_version(BehaviorVersion::latest())
.build();
let client = aws_sdk_apigatewaymanagement::Client::new(&config);
client
.post_to_connection()
.connection_id(connection_id)
.data(data_as_blob)
.send().await;
Describe the bug
Prefacing this issue with the fact that it could be my misconfiguring.
I'm currently having trouble posting a message back to a connection via a Websocket API.
I've tried a few things such as getting credentials using some of the methods I've seen around github but whichever way I do try I just haven't managed to crack the right combination.
I have a lambda role which I usually set privs there but it doesn't seem to even work when I give it full admin. I assumed action
execute-api:ManageConnections
would suffice?Expected Behavior
I just expected either a less confusing error message or a success :D
Current Behavior
Reproduction Steps
Possible Solution
No response
Additional Information/Context
No response
Version
Environment details (OS name and version, etc.)
Custom runtime on Amazon Linux 2 - cargo lambda v1 Rust Function
Logs
No response