mirror of
https://github.com/serverless/serverless.git
synced 2026-01-25 15:07:39 +00:00
websockets: fix passing log group ARN
The log group ARN contains a trailing ":*" that seems to cause deployment to fail. Instead, generate the ARN with the trailing wildcard. fixes #6304
This commit is contained in:
parent
9b9c9e2641
commit
6b00ef5bcc
@ -34,7 +34,7 @@ module.exports = {
|
||||
Object.assign(stageResource.Properties, {
|
||||
AccessLogSettings: {
|
||||
DestinationArn: {
|
||||
'Fn::GetAtt': [logGroupLogicalId, 'Arn'],
|
||||
'Fn::Sub': `arn:aws:logs:\${AWS::Region}:\${AWS::AccountId}:log-group:\${${logGroupLogicalId}}`,
|
||||
},
|
||||
Format: [
|
||||
'$context.identity.sourceIp',
|
||||
|
||||
@ -81,7 +81,8 @@ describe('#compileStage()', () => {
|
||||
Description: 'Serverless Websockets',
|
||||
AccessLogSettings: {
|
||||
DestinationArn: {
|
||||
'Fn::GetAtt': [logGroupLogicalId, 'Arn'],
|
||||
'Fn::Sub':
|
||||
'arn:aws:logs:${AWS::Region}:${AWS::AccountId}:log-group:${WebsocketsLogGroup}',
|
||||
},
|
||||
Format: [
|
||||
'$context.identity.sourceIp',
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user