New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Document required permissions AWS IAM role for Functionbeat #11787
Labels
Comments
Minimal required permissions by type: Cloudwatch{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "VisualEditor0",
"Effect": "Allow",
"Action": [
"cloudformation:CreateStack",
"cloudformation:DeleteStack",
"cloudformation:DescribeStacks",
"cloudformation:DescribeStackEvents",
"cloudformation:DescribeStackResources",
"cloudformation:GetTemplate",
"cloudformation:UpdateStack",
"cloudformation:ValidateTemplate"
"iam:CreateRole",
"iam:DeleteRole",
"iam:DeleteRolePolicy",
"iam:GetRole",
"iam:GetRolePolicy",
"iam:PassRole",
"iam:PutRolePolicy",
"lambda:AddPermission",
"lambda:CreateFunction",
"lambda:DeleteFunction",
"lambda:GetFunction",
"lambda:GetFunctionConfiguration",
"lambda:PutFunctionConcurrency",
"lambda:RemovePermission",
"lambda:UpdateFunctionCode",
"lambda:UpdateFunctionConfiguration",
"logs:CreateLogGroup",
"logs:DeleteLogGroup",
"logs:DeleteSubscriptionFilter",
"logs:DescribeLogGroups",
"logs:PutSubscriptionFilter",
"s3:CreateBucket",
"s3:DeleteObject",
"s3:ListBucket",
"s3:PutObject",
"s3:GetObject",
],
"Resource": "*"
}
]
} SQS and Kinesis{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "VisualEditor0",
"Effect": "Allow",
"Action": [
"cloudformation:CreateStack",
"cloudformation:DeleteStack",
"cloudformation:DescribeStacks",
"cloudformation:DescribeStackEvents",
"cloudformation:DescribeStackResources",
"cloudformation:GetTemplate",
"cloudformation:UpdateStack",
"cloudformation:ValidateTemplate"
"iam:CreateRole",
"iam:DeleteRole",
"iam:DeleteRolePolicy",
"iam:GetRole",
"iam:GetRolePolicy",
"iam:PassRole",
"iam:PutRolePolicy",
"lambda:AddPermission",
"lambda:CreateFunction",
"lambda:CreateEventSourceMapping",
"lambda:DeleteFunction",
"lambda:DeleteEventSourceMapping",
"lambda:GetEventSourceMapping",
"lambda:GetFunction",
"lambda:GetFunctionConfiguration",
"lambda:PutFunctionConcurrency",
"lambda:RemovePermission",
"lambda:UpdateFunctionCode",
"lambda:UpdateFunctionConfiguration",
"s3:CreateBucket",
"s3:DeleteObject",
"s3:ListBucket",
"s3:PutObject",
"s3:GetObject",
],
"Resource": "*"
}
]
} |
I'm working on getting this tested and into the published docs. In the mean time, however, note that CloudWatch example shown earlier has syntax errors. The correct syntax is:
|
The sqs/kinesis example shown earlier is missing a couple of privileges (when tested on sqs):
Plus the example has a couple syntax errors. The correct policy is:
|
Closed by #13206 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Before #11779 it was not possible to configure custom roles for a function. Instead a custom policy was created with a default role for Functionbeat.
The text was updated successfully, but these errors were encountered: