You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Looking deeper in their doumentation, I found myself redirected to this Docker documentation which seems to imply that this option should be set with the LogGroupName.
When linting a template with awslogs-group set to the LogGroupName, cfn-lint fails with this error:
E1010 'LogGroupName' is not one of ['Arn'] in ['eu-west-3']
So I tried replacing the LogGroupName with the Arn.
This time no error from cfn-lint but when deploying the template with CloudFormation, it fails with:
So I did replace awslogs-group: !GetAtt 'TestLogGroup.LogGroupName' or awslogs-group: !GetAtt 'TestLogGroup.Arn' with awslogs-group: !Ref 'TestLogGroup' which seems to be the right way to pass the log group to the option.
What bothers me is the error message from cfn-lint which seems misleading.
Is this intended?
Looking into this. Early indications are because the Arn is the only documented return value. This also seems to be the only defined GetAtt property in the schema as well.
What that error is pointing to is the idea that the Arn is the only attribute you can do a GetAtt too for this resource type. The work to add knowledge about the correct relationships (Ref/GetAtt with the attribute) is ongoing and isn't complete. So in this case we are just making sure the GetAtt is correct but we don't know if a GetAtt or Ref was the correct way to associate.
CloudFormation Lint Version
cfn-lint 1.22.4
What operating system are you using?
alpine3.20 (cfn-lint in docker)
Describe the bug
While specifying a
LogConfiguration
, the AWS documentation is quite evasive on what theawslogs-group
option is supposed to be.Looking deeper in their doumentation, I found myself redirected to this Docker documentation which seems to imply that this option should be set with the
LogGroupName
.When linting a template with
awslogs-group
set to theLogGroupName
,cfn-lint
fails with this error:E1010 'LogGroupName' is not one of ['Arn'] in ['eu-west-3']
So I tried replacing the
LogGroupName
with theArn
.This time no error from
cfn-lint
but when deploying the template with CloudFormation, it fails with:So I guess an ARN is not valid when specifying the
awslogs-goup
option.Has anyone any insight on this matter?
Expected behavior
I expect
cfn-lint
to enforce anawslogs-group
that complies with what CloudFormation considers to be valid.Reproduction template
The text was updated successfully, but these errors were encountered: