Skip to content

Commit cec4e22

Browse files
chngpeburhan94
authored andcommitted
fix cloudwatch glue connection cfn template (awslabs#3013)
Co-authored-by: burhan94 <[email protected]>
1 parent acb849b commit cec4e22

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

athena-cloudwatch/athena-cloudwatch-connection.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ Parameters:
2323
GlueConnection:
2424
Description: "Name of glue connection storing connection details for Federated Data source."
2525
Type: String
26-
LambdaRole:
26+
LambdaRoleArn:
2727
Description: "(Optional) A custom role to be used by the Connector lambda"
2828
Type: String
2929
Default: ""
@@ -34,7 +34,7 @@ Parameters:
3434

3535
Conditions:
3636
HasKmsKeyId: !Not [!Equals [!Ref KmsKeyId, ""]]
37-
NotHasLambdaRole: !Equals [!Ref LambdaRole, ""]
37+
NotHasLambdaRole: !Equals [!Ref LambdaRoleArn, ""]
3838
CreateKmsPolicy: !And [ !Condition HasKmsKeyId, !Condition NotHasLambdaRole ]
3939
IsRegionBAH: !Equals [!Ref "AWS::Region", "me-south-1"]
4040
IsRegionHKG: !Equals [!Ref "AWS::Region", "ap-east-1"]
@@ -56,7 +56,7 @@ Resources:
5656
Description: "Enables Amazon Athena to communicate with Cloudwatch, making your log accessible via SQL"
5757
Timeout: 900
5858
MemorySize: 3008
59-
Role: !If [NotHasLambdaRole, !GetAtt FunctionRole.Arn, !Ref LambdaRole]
59+
Role: !If [NotHasLambdaRole, !GetAtt FunctionRole.Arn, !Ref LambdaRoleArn]
6060

6161
FunctionRole:
6262
Condition: NotHasLambdaRole

0 commit comments

Comments
 (0)