diff --git a/.changeset/perfect-kiwis-repair.md b/.changeset/perfect-kiwis-repair.md new file mode 100644 index 000000000..343a76e41 --- /dev/null +++ b/.changeset/perfect-kiwis-repair.md @@ -0,0 +1,5 @@ +--- +"infrastructure": patch +--- + +Fixed codebuild cicd lambda permissions diff --git a/apps/infrastructure/src/modules/cicd/iam.tf b/apps/infrastructure/src/modules/cicd/iam.tf index 32659fa97..482313905 100644 --- a/apps/infrastructure/src/modules/cicd/iam.tf +++ b/apps/infrastructure/src/modules/cicd/iam.tf @@ -82,7 +82,7 @@ resource "aws_iam_policy" "deploy_website" { Action = [ "lambda:*", ] - Resource = ["arn:aws:lambda:${var.aws_region}:${data.aws_caller_identity.current.account_id}:function/*chatbot*"] + Resource = ["arn:aws:lambda:${var.aws_region}:${data.aws_caller_identity.current.account_id}:function:*chatbot*"] } ] })