'Terraform Kubernetes on Aws/Azure with common template

I want to deploy kubernetes structure in azure and aws using terraform. Can I do this with a single file for kubernetes without creating different templates?

  • aws_provider.tf
  • azure_provider.tf
  • kubernetes.tf >> This template can be common template ?

There are separate kubernetes configuration for all service providers.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source