Skip to content
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

Possible Typo in IAM Policy for 07_Agents/insurance_claims_agent/without_kb/create_and_invoke_agent.ipynb #191

Open
jmann-mdsol opened this issue Feb 8, 2024 · 3 comments

Comments

@jmann-mdsol
Copy link

In the section Create Lambda function for Action Group of 07_Agents/insurance_claims_agent/without_kb/create_and_invoke_agent.ipynb there is an IAM policy document:

    assume_role_policy_document = {
        "Version": "2012-10-17",
        "Statement": [
            {
                "Effect": "Allow",
                "Action": "bedrock:InvokeModel",
                "Principal": {
                    "Service": "lambda.amazonaws.com"
                },
                "Action": "sts:AssumeRole"
            }
        ]
    }

This contains a duplicate key Action. Based on the name and how python handles duplicate keys within dictionaries, I imagine it is supposed to be:

    assume_role_policy_document = {
        "Version": "2012-10-17",
        "Statement": [
            {
                "Effect": "Allow",
                "Principal": {
                    "Service": "lambda.amazonaws.com"
                },
                "Action": "sts:AssumeRole"
            }
        ]
    }

but am not sure. Please clarify. Thank you!

@jmann-mdsol
Copy link
Author

This typo is also present in here:

@w601sxs
Copy link
Contributor

w601sxs commented Apr 9, 2024

us this still relevant in our new structure @mttanke ?

@w601sxs
Copy link
Contributor

w601sxs commented May 15, 2024

@mttanke can you take a look

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants