- Newest
- Most votes
- Most comments
Looking at the available permissions for Lex, I see that you've got permissions for Lex and Lex v2 to choose from. This might explain why you can build a bot but cannot build a locale, because in Lex v1 there is no explicit permission for creating a locale, but in Lex v2 there is 'BuildBotLocale'.
I would say to go back to the IAM permissions for the IAM user that you're using for these calls, double-check that they have what they need and modify their permissions if needed.
I see that you've mentioned that the simulator worked fine, so if you find that is the case again (simulator works but implementation doesn't) then I would start trying to whittle down the permissions. Start with things like "Put*" in the policy statement for the Lex service, and check it. If that works, then list out all of the Puts and whittle down. If you go from "Put*" to all of the "Put" actions and it stops working, then you may have found a hidden permission and that needs to be reflected in the documentation. You can report this through the 2nd page I linked above. Scroll to the bottom of it and hit the 'thumbs down' option and explain what was missing and it should be updated relatively quickly.
Hi everyone, Can anyone please suggest me how can I resolve this please? I am stuck until this is resolved as I cant create a bot completely due to the problem above with locale.
Hey, were you able to resolve this issue?
Relevant content
- asked 2 years ago
- asked 2 years ago
- asked a month ago
- AWS OFFICIALUpdated 3 months ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 2 years ago
Hi Ciaran, Not sure if I have explained it properly. I am not trying to "build" the bot locale, rather I am trying to "create" the bot locale. I would assume build is required when you already have created the bot and the locale. So I think BuildBotLocale is not required. But anyways the user have all the permissions.
In terms of permissions, my actions are " * " and resources are " * " as well. Which means the user can do anything they want.
Also, when I was trying out creating the bot with CreateBot call. I was getting the similar error. In the code, I passed in roleArn and it started to work.
It seems passing the roleARN is possible in creating the bot but not when creating the bot locale as there is not method available in CreateBotLOcaleRequest to pass in the roleARN. I feel this is what is missing.