Skip to content

Commit

Permalink
list
Browse files Browse the repository at this point in the history
  • Loading branch information
arianvp committed Jun 8, 2024
1 parent b1f3313 commit 176c483
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions deploy/instance.tf
Original file line number Diff line number Diff line change
Expand Up @@ -127,13 +127,18 @@ data "aws_iam_openid_connect_provider" "github_actions" {

data "aws_iam_policy_document" "deploy" {
statement {
actions = ["ssm:SendCommand"]
effect = "Allow"
actions = ["ssm:SendCommand"]
resources = [module.ssm_documents.nixos_deploy.arn]
}
statement {
actions = ["ssm:SendCommand"]
effect = "Allow"
actions = ["ssm:ListCommands", "ssm:ListCommandInvocations"]
resources = ["*"]
}
statement {
effect = "Allow"
actions = ["ssm:SendCommand"]
resources = ["arn:aws:ec2:*:*:instance/*"]
condition {
test = "StringLike"
Expand Down

0 comments on commit 176c483

Please sign in to comment.