Skip to content

Wrong action in action group policy #155

@pavelkipp

Description

@pavelkipp

presently the action group policy creates a policy with a wrong action, should be lambda:InvokeFunction

resource "aws_iam_role_policy" "action_group_policy" { count = var.create_ag ? 1 : 0 policy = jsonencode({ Version = "2012-10-17" Statement = [ { Effect = "Allow" **Action = "lambda:InvokeModel"** Resource = concat([var.lambda_action_group_executor], var.action_group_lambda_arns_list) } ] }) role = aws_iam_role.agent_role[0].id }

the terafform is able to create the policy but the console will error :
Invalid Action: The action lambda:InvokeModel does not exist.
when trying to modify it locally.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions