Skip to content

Commit

Permalink
chore(chatbot): Define IAM Role to use on chatbot deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
batdevis committed Nov 5, 2024
1 parent 00d6250 commit e7b8ac9
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion apps/infrastructure/src/modules/chatbot/iam.tf
Original file line number Diff line number Diff line change
Expand Up @@ -90,4 +90,18 @@ module "iam_role_bedrock_logging" {
"bedrock.amazonaws.com"
]
role_requires_mfa = false
}
}

###############################################################################
# Define IAM Role to use on chatbot deploy #
###############################################################################
resource "aws_iam_role" "deploy_chatbot" {
name = "GitHubActionDeployChatbot"
description = "Role to assume to deploy the chatbot"
assume_role_policy = data.aws_iam_policy_document.deploy_github.json
}

resource "aws_iam_role_policy_attachment" "deploy_chatbot" {
role = aws_iam_role.deploy_chatbot.name
policy_arn = aws_iam_policy.deploy_chatbot.arn
}

0 comments on commit e7b8ac9

Please sign in to comment.