Skip to content

Commit

Permalink
Add log configuration build task
Browse files Browse the repository at this point in the history
  • Loading branch information
nightfury1204 committed Apr 9, 2024
1 parent 1acda16 commit 88df589
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions provider/aws/formation/rack.json
Original file line number Diff line number Diff line change
Expand Up @@ -4002,6 +4002,34 @@
{ "Ref": "BuildImage" }
]
},
"LogConfiguration": {
"Fn::If": [
"EnableSyslog",
{
"LogDriver": "syslog",
"Options": {
"syslog-address": { "Ref": "SyslogDestination" },
"syslog-format": { "Ref": "SyslogFormat" }
}
},
{
"Fn::If": [
"EnableCloudWatch",
{
"LogDriver": "awslogs",
"Options": {
"awslogs-region": { "Ref": "AWS::Region" },
"awslogs-group": { "Ref": "LogGroup" },
"awslogs-stream-prefix": "build"
}
},
{
"Ref": "AWS::NoValue"
}
]
}
]
},
"LinuxParameters": {
"InitProcessEnabled": "true"
},
Expand Down

0 comments on commit 88df589

Please sign in to comment.