Skip to content

Commit

Permalink
Delete main.tf.Off file
Browse files Browse the repository at this point in the history
  • Loading branch information
mms2409 committed Mar 12, 2024
1 parent 1b78b95 commit 05bddae
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 20 deletions.
4 changes: 2 additions & 2 deletions modules/services/workload-scanning/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ data "aws_iam_policy_document" "scanning" {
}
}

resource "aws_iam_policy" "scanning" {
resource "aws_iam_policy" "ecr_scanning" {
count = (var.deploy_global_resources || var.is_organizational) ? 1 : 0

name = var.name
Expand Down Expand Up @@ -88,5 +88,5 @@ resource "aws_iam_policy_attachment" "scanning" {

name = var.name
roles = [aws_iam_role.scanning[0].name]
policy_arn = aws_iam_policy.scanning[0].arn
policy_arn = aws_iam_policy.ecr_scanning[0].arn
}
2 changes: 1 addition & 1 deletion modules/services/workload-scanning/organizational.tf
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ resource "aws_cloudformation_stack_set" "scanning_role_stackset" {

template_body = <<TEMPLATE
Resources:
AgentlessWorkloadRole:
SysdigAgentlessWorkloadRole:
Type: AWS::IAM::Role
Properties:
RoleName: ${var.name}
Expand Down
17 changes: 0 additions & 17 deletions test/examples/secure_workload_scanning/single/main.tf.OFF

This file was deleted.

0 comments on commit 05bddae

Please sign in to comment.