Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
panther-bot authored Jan 3, 2024
1 parent 39a2209 commit 6e5df52
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 5 deletions.
8 changes: 8 additions & 0 deletions cloudformation/panther-cloudsec-iam.yml
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,14 @@ Resources:
- eks:DescribeFargateProfile
- eks:DescribeNodegroup
Resource: '*'
- PolicyName: DescribeDynamodb
PolicyDocument:
Version: 2012-10-17
Statement:
- Effect: Allow
Action:
- dynamodb:DescribeKinesisStreamingDestination
Resource: '*'
Tags:
- Key: Application
Value: Panther
Expand Down
6 changes: 1 addition & 5 deletions terraform/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,4 @@ Log Analysis analog to CloudWatch event notifications for cloud security real ti

## "Deployment" template

Programmatic deployment of Panther

## "deployment" role trust principal

- the IAM identity of the external automation principal that is deploying Panther (not a Panther component)
Note: the deployment role was previously available as a terraform template, but has been deprecated in favor of a CloudFormation implementation. Please see `cloudformation/panther-deployment-role.yml`.
19 changes: 19 additions & 0 deletions terraform/panther_cloudsec_iam/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,25 @@ resource "aws_iam_role_policy" "panther_list_describe_eks" {
})
}

resource "aws_iam_role_policy" "panther_describe_dynamodb" {
count = var.include_audit_role ? 1 : 0
name = "DescribeDynamodb"
role = aws_iam_role.panther_audit[0].id

policy = jsonencode({
Version : "2012-10-17",
Statement : [
{
Effect : "Allow",
Action : [
"dynamodb:DescribeKinesisStreamingDestination",
],
Resource : "*"
}
]
})
}


###############################################################
# CloudFormation StackSet Execution Role
Expand Down

0 comments on commit 6e5df52

Please sign in to comment.