How would you configure Jenkins to build and deploy an application to AWS, Azure, or GCP? Can you share sample code or a Jenkinsfile for deploying with Terraform or CloudFormation?
This question explores your ability to automate cloud deployments using Jenkins with tools like Terraform or CloudFormation for Infrastructure as Code. A detailed Jenkinsfile configuration that outlines the steps for building and deploying to a specific cloud provider, as well as handling credentials and infrastructure management, is expected.