mirror of
https://github.com/falcosecurity/falco.git
synced 2025-06-27 15:17:50 +00:00
Use a newly created system account instead of my personal one
This restricts attack surface, and work better in term of automation.
This commit is contained in:
parent
e15ee1d28d
commit
c24fa324d2
@ -1,3 +1,7 @@
|
||||
resource "aws_iam_user" "kubernetes-response-engine-user" {
|
||||
name = "kubernetes_response_engine"
|
||||
}
|
||||
|
||||
resource "aws_iam_role" "iam-for-lambda" {
|
||||
name = "iam_for_lambda"
|
||||
|
||||
@ -9,7 +13,7 @@ resource "aws_iam_role" "iam-for-lambda" {
|
||||
"Action": "sts:AssumeRole",
|
||||
"Principal": {
|
||||
"Service": "lambda.amazonaws.com",
|
||||
"AWS": "${var.iam-user-arn}"
|
||||
"AWS": "${aws_iam_user.kubernetes-response-engine-user.arn}"
|
||||
},
|
||||
"Effect": "Allow",
|
||||
"Sid": ""
|
||||
|
@ -1,3 +0,0 @@
|
||||
variable "iam-user-arn" {
|
||||
type = "string"
|
||||
}
|
Loading…
Reference in New Issue
Block a user