Resource Type definition for AWS::Logs::LogStream
To create Amazon CloudWatch log stream
resource "awscc_logs_log_group" "this" {
log_group_name = "SampleLogGroup"
retention_in_days = 90
tags = [
{
key = "Name"
value = "SampleLogGroup"
},
{
key = "Environment"
value = "Development"
},
{
key = "Modified By"
value = "AWSCC"
}
]
}
resource "awscc_logs_log_stream" "this" {
log_group_name = awscc_logs_log_group.this.id
log_stream_name = "SampleStream"
}
log_group_name
(String) The name of the log group where the log stream is created.log_stream_name
(String) The name of the log stream. The name must be unique wihtin the log group.id
(String) Uniquely identifies the resource.Import is supported using the following syntax:
$ terraform import awscc_logs_log_stream.example <resource ID>