Search code examples
visual-studioamazon-web-servicesaws-sdkamazon-rekognition

Cannot connect to AWS Educate with visual Studio


I need to connect to AWS Educate account with C#( visual studio). I can do it under Standard account but when i connect to Educate account it shows my "invalid credentials token,,,,,". i got Credentials for Educate account through https://labs.vocareum.com/, under account details blue button. I used the credentials inside the code same as what i did with standard account. Could you help me it is really important for me. This is my connection code:

rekognitionClient = new AmazonRekognitionClient("A****",
                                                "n****",
                                                "session_token***"
                                                 Amazon.RegionEndpoint.USEast1);
DetectLabelsResponse detectLabelsResponse = rekognitionClient.DetectLabels(detectlabelsRequest);

Solution

  • Finally I found The issue, The point is for Educate Account there is a session which is changed every around 2 hours(you can see the time in vocareum.com ). SO you have to change the credential every time session gets new and put Session token in as one of the parameters. Thanks @Nick. I Edited the answer