Skip to content

Commit

Permalink
Merge branch 'iam-least-privileaged' into iam-privilege
Browse files Browse the repository at this point in the history
  • Loading branch information
aavinash-nr authored Dec 4, 2024
2 parents 9e35bc1 + f5ce8a8 commit a7594a7
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 16 deletions.
14 changes: 0 additions & 14 deletions examples/terraform/nodejs/lambda-policy.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,20 +11,6 @@
"Resource": [
"arn:aws:logs:us-east-1:<aws-account-id>:log-group:/aws/lambda/newrelic-terraform-example-nodejs:*"
]
"Resource": "*"
},
{
"Sid": "",
"Action": "s3:*",
"Effect": "Allow",
"Action": [
"logs:CreateLogGroup",
"logs:CreateLogStream",
"logs:PutLogEvents"
],
"Resource": [
"arn:aws:logs:us-east-1:<aws-account-id>:log-group:/aws/lambda/newrelic-terraform-example-nodejs:*"
]
}
]
}
2 changes: 1 addition & 1 deletion examples/terraform/python/lambda-policy.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"logs:PutLogEvents"
],
"Resource": [
"arn:aws:logs:us-east-1:<aws-account-id>:log-group:/aws/lambda/newrelic-terraform-example-nodejs:*"
"arn:aws:logs:us-east-1:<aws-account-id>:log-group:/aws/lambda/newrelic-terraform-example-python:*"
]
}
]
Expand Down
2 changes: 1 addition & 1 deletion examples/terraform/ruby/lambda-policy.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"logs:PutLogEvents"
],
"Resource": [
"arn:aws:logs:us-east-1:<aws-account-id>:log-group:/aws/lambda/newrelic-terraform-example-nodejs:*"
"arn:aws:logs:us-east-1:<aws-account-id>:log-group:/aws/lambda/newrelic-terraform-example-ruby:*"
]
}
]
Expand Down

0 comments on commit a7594a7

Please sign in to comment.