Using AWS IVSClient #3870
-
Hi All, I'm trying to use the @aws-sdk/client-ivs package in a browser app (Svelte) , and have created code such as let ivsconfig = {
configuration: {
credentials: {
aws_access_key_id: "xxxxxxxxxxxxxxxxxx",
aws_secret_access_key: "xxxxxxxxxxxx",
},
region: "us-east-1",
},
};
let ivsClient = new IvsClient(ivsconfig);
let input = {
filterByName: "zzz",
};
const command = new ListChannelsCommand(input); but I get 'Region is missing ' error for any command. I understand that if I was creating a node app, ( I think) the code would use the aws config file. How can I get this to work even though I have passed the required params to the IvsClient constructor. thanks for any insight John |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Hey John, I believe the formatting is wrong in the code above, can you use something like: let ivsconfig = {
configuration: {
credential: {
accessKeyId: "xxx",
secretAccessKey: "xxx",
},
region: "us-east-1",
},
};
let ivsClient = new IvsClient(ivsconfig.configuration); |
Beta Was this translation helpful? Give feedback.
-
Hello! Reopening this discussion to make it searchable. |
Beta Was this translation helpful? Give feedback.
Hey John, I believe the formatting is wrong in the code above, can you use something like: