Попробуйте что-то вроде этого
c := aws.NewCloudWatchLogsClient(t, awsRegion)
t.Run("logStreamExists", func(t *testing.T) {
output, err := c.DescribeLogStreams(&cloudwatchlogs.DescribeLogStreamsInput{
LogGroupName: &logGroupName,
})
if err != nil {
assert.Fail(t, "Failed to get log streams")
}
var names []string
for _, element := range output.LogStreams {
names = append(names, *element.LogStreamName)
}
assert.Contains(t, names, logStreamName)
})