Fork me on GitHub
#aws
<
2021-10-18
>
grant12:10:21

Does anyone have any experience with using aws-api with CodeCommit? I tried listing the repositories for an account with (aws/invoke codecommit {:op :ListRepositories}) and got {:repositories []} while aws codecommit list-repositories returns one repo, as expected.

{
   "repositories": [
       {
           "repositoryName": "repo",
           "repositoryId": ...
       }
   ]
}

jjttjj13:10:54

They're both using the same region right?

grant15:10:44

@U064UGEUQ Your suspicion was correct, explicitly setting the region for the client gives the expected results. I’ll have to figure out why the region wasn’t getting set the way I thought it was. Thank you for your help.

jjttjj15:10:37

No problem, I just guessed because I've done this myself 10+ times 🙂