Skip to content

Commit

Permalink
DOPS-101 Add dynamodb permissions to jenkins role
Browse files Browse the repository at this point in the history
  • Loading branch information
akagr committed Sep 10, 2022
1 parent e6ab269 commit 63150d0
Show file tree
Hide file tree
Showing 2 changed files with 200 additions and 20 deletions.
7 changes: 7 additions & 0 deletions terraform/bootstrap/jenkins.tf
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,13 @@ data "aws_iam_policy_document" "terraform_backend_role_policy_document" {
actions = ["s3:*"]
resources = ["arn:aws:s3:::${module.bootstrap.state_bucket}/*"]
}

statement {
effect = "Allow"

actions = ["dynamodb:*"]
resources = ["arn:aws:dynamodb:${var.aws_region}:${data.aws_caller_identity.current.account_id}:table/${module.bootstrap.dynamodb_table}"]
}
}

resource "aws_iam_policy" "terraform_backend_role_policy" {
Expand Down
Loading

0 comments on commit 63150d0

Please sign in to comment.