Skip to content

Commit bcfe4ba

Browse files
authored
fix: Msk Tests Failure due to Missing Permissions (#3443)
1 parent 7a4c1fa commit bcfe4ba

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

integration/combination/test_function_with_msk.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@
77
from integration.helpers.resource import current_region_does_not_support, generate_suffix
88

99

10+
# Mark this test suite as nonblocking tests since MSK Cluster creation can take
11+
# up to 30 minutes according to https://docs.aws.amazon.com/msk/latest/developerguide/troubleshooting.html#troubleshooting-cluster-stuck
12+
# This would cause the test to fail due to MSK Cluster did not stablize.
13+
# We should investigate any other cause of failures.
1014
@skipIf(current_region_does_not_support([MSK]), "MSK is not supported in this testing region")
1115
@nonblocking
1216
class TestFunctionWithMsk(BaseTest):

integration/resources/templates/combination/function_with_msk_trigger_and_s3_onfailure_events_destinations.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ Resources:
2424
- Action: [kafka:DescribeCluster, kafka:GetBootstrapBrokers, ec2:CreateNetworkInterface,
2525
ec2:DescribeNetworkInterfaces, ec2:DescribeVpcs, ec2:DeleteNetworkInterface,
2626
ec2:DescribeSubnets, ec2:DescribeSecurityGroups, logs:CreateLogGroup,
27-
logs:CreateLogStream, logs:PutLogEvents]
27+
logs:CreateLogStream, logs:PutLogEvents, s3:ListBucket]
2828
Effect: Allow
2929
Resource: '*'
3030
ManagedPolicyArns: [arn:aws:iam::aws:policy/service-role/AWSLambdaBasicExecutionRole]

0 commit comments

Comments
 (0)