Log Stream
Manages a Cloud Watch Log Stream.
Sample code
exports.createResources = () => [
{
type: "LogStream",
group: "CloudWatchLogs",
properties: ({}) => ({
logStreamName: "my-log-stream",
}),
dependencies: ({}) => ({
cloudWatchLogGroup: "my-log-group",
}),
},
];
Properties
Full Examples
Dependencies
Used By
List
The log streams can be filtered with the LogStream type:
gc l -t CloudWatchLogs::LogStream
Listing resources on 1 provider: aws
✓ aws us-east-1
✓ Initialising
✓ Listing 2/2
┌──────────────────────────────────────────────────────────────────────────────────────────────┐
│ 1 CloudWatchLogs::LogStream from aws │
├──────────────────────────────────────────────────────────────────────────────────────────────┤
│ name: my-log-group::my-log-stream │
│ managedByUs: Yes │
│ live: │
│ arn: arn:aws:logs:us-east-1:840541460064:log-group:my-log-group:log-stream:my-log-stream │
│ creationTime: 1658483852431 │
│ logStreamName: my-log-stream │
│ storedBytes: 0 │
│ │
└──────────────────────────────────────────────────────────────────────────────────────────────┘
List Summary:
Provider: aws
┌─────────────────────────────────────────────────────────────────────────────────────────────┐
│ aws │
├───────────────────────────┬─────────────────────────────────────────────────────────────────┤
│ CloudWatchLogs::LogStream │ my-log-group::my-log-stream │
└───────────────────────────┴─────────────────────────────────────────────────────────────────┘
1 resource, 1 type, 1 provider
Command "gc l -t CloudWatchLogs::LogStream" executed in 6s, 104 MB