-
Notifications
You must be signed in to change notification settings - Fork 4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
aws_iam: CfnServiceLinkedRole not adding policy to role #27203
Comments
CDK generates CloudFormation templates and deploys them to CloudFormation - since you're using an L1 resource (prefixed with |
Yes, that makes sense however in this case I don't think that is possible. In the CfnServiceLinkedRole docs it says: Link to CfnServiceLinkedRole docs: https://docs.aws.amazon.com/cdk/api/v2/python/aws_cdk.aws_iam/CfnServiceLinkedRole.html Link to LexV2 Service linked role docs: https://docs.aws.amazon.com/lexv2/latest/dg/using-service-linked-roles.html |
You'll need to reach out to CloudFormation / Lex about this, all we're doing here on CDK's end is creating the template exactly as you've specified. If you have an existing service role in your account you can try using that instead of passing in a new one and see if that helps. Beyond that you should reach out to the CloudFormation repo I linked, and create a ticket in premium support if you have it |
Ok, thank you for the assistance. |
|
Describe the bug
When creating a lexv2 bot with a built-in intent type of AMAZON.KendraSearchIntent a policy with permissions to query Kendra should be generated but it isn't. The policy is automatically generated and attached to the service linked role in the AWS console but it is not added if the bot is create though the cdk.
Relevant code snippet:
Expected Behavior
A policy allowing access to Kendra from Lex should be generated so lex can use the built-in AMAZON.KendraSearchIntent intent.
Current Behavior
The policy is not generated, access is blocked
Reproduction Steps
Using the python cdk create a lex service linked role and a cfnbot which uses the role. Test the lex bot and access to Kendra will be denied.
Possible Solution
Update the lex service linked role with the correct permissions when a AMAZON.KendraSearchIntent intent is included in the bot.
Additional Information/Context
No response
CDK CLI Version
2.96.2 (build 3edd240)
Framework Version
No response
Node.js Version
v18.18.0
OS
Ubuntu 23.04
Language
Python
Language Version
Python 3.11.4
Other information
No response
The text was updated successfully, but these errors were encountered: