Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

200
Views
Terraform import aws_cloudwatch_log_stream

I need to import an existing aws_cloudwatch_log_stream (or AWS::Logs::LogStream in CloudFormation) into my configuration. However, it appears that Terraform does not support this functionality. CloudFormation also doesn't support this functionality, so I can't just wrap it into a mini CloudFormation template.

I don't want to delete and remake my old log stream.

What should I do? What are my options?

over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

This functionality was added in version 2.67.0 of the AWS provider.

You should be able to import a log stream when using that version or greater by running the following command:

terraform import aws_cloudwatch_log_stream.foo Yada:SampleLogStream1234

Original answer:

This pull request was raised today and will add the ability to import Cloudwatch Log Streams in the form of logGroup:logStream. The documentation provides an example:

terraform import aws_cloudwatch_log_stream.foo Yada:SampleLogStream1234

To be able to use this you can either wait for it to be merged (likely very soon as it's small and the author has contributed a lot to the AWS provider) and then released or you can build the provider yourself from the pull request's forked repo and branch.

over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!