Hello,
I have a terraform configuration script which is using for provision an AWS ECS cluster to deploy an OpenSearch cluster and it is working for using terraform AWS provider v5.52.0 or older version. However, the same terraform configuration script failed to start the ECS task for the provision of the OpenSearch cluster in an AWS ECS cluster with terraform AWS provider v5.23.0 or newer version. These two provisions are different only using different terraform AWS provider. Success one is using the terraform AWS provider v5.52.0 or older versions and failed one is using the terraform AWS provider v5.53.0 or new versions. What might be a cause and what approaches can be used to solve this issue?
Here is an error in the ECS task:
“Exit code: - CannotStartContainerError: Error response from daemon: failed to create task for container: failed to initialize logging driver: failed to create Cloudwatch log stream: operation error CloudWatch Logs: CreateLogStream, exceeded maximum number of attempts,View troubleshooting guide”.
I’ve made tests on the Terraform AWS Provider from v5.53.0 until v5.60.0 and all got the above same issue for creating aws cloudwatch stream. However, the older than version v5.20.0 are working fine.
Any idea or suggestion would be great appreciated!
Thank you,
Kind Regards,
Tome