Skip to content

Commit 89227d4

Browse files
authored
Update I3510 to lower case resource names (#4038)
1 parent bbc1c73 commit 89227d4

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/cfnlint/rules/resources/iam/StatementResources.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -153,8 +153,11 @@ def validate(
153153
continue
154154
resources = ensure_list(resources)
155155
for resource in resources:
156+
# use lower as certain resources are described in actions
157+
# with upper case letters and in resources as lower
158+
# case issue #4036
156159
arn_formats = self.service_map[service]["Resources"][
157-
resource
160+
resource.lower()
158161
].get("ARNFormats")
159162
for arn_format in arn_formats:
160163
arn = _Arn(arn_format)

0 commit comments

Comments
 (0)