Skip to content

Commit

Permalink
chore: attach lightsale policy to user instead of role
Browse files Browse the repository at this point in the history
  • Loading branch information
3mcd committed Mar 3, 2025
1 parent f4f1f09 commit 6ab8a13
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ resource "aws_iam_role_policy_attachment" "gha_attach_secrets" {
policy_arn = aws_iam_policy.github_actions_secrets.arn
}

resource "aws_iam_role_policy_attachment" "gha_attach_lightsail" {
role = aws_iam_role.github_actions_role.name
resource "aws_iam_user_policy_attachment" "gha_user_attach_lightsail" {
user = aws_iam_user.github_actions.name
policy_arn = aws_iam_policy.lightsail.arn
}

0 comments on commit 6ab8a13

Please sign in to comment.