From the course: Automating Kubernetes with GitOps
Unlock this course with a free trial
Join today to access over 24,900 courses taught by industry experts.
Using Terraform for infrastructure as code - Kubernetes Tutorial
From the course: Automating Kubernetes with GitOps
Using Terraform for infrastructure as code
- All right. Before I show you how to use Terraform to manage Kubernetes, let's take a small test drive. So to test working with Terraform, we are going to try building an AWS instance. To do so, you first need to fetch the AWS_ACCESS_KEY_ID as well as the AWS_SECRET_ACCESS_KEY from the AWS IAM console, because the access key as well as the secret access key, they work as a username and password and they are identifying Terraform when it reaches out to AWS. Also, you need an AMI that has the option ENA enabled set to yes. If you're following the example in the Terraform documentation, they're using an AMI that doesn't have this option set, so that example will fail. So, how do you find that information? Let's have a quick look at the AWS environment. So here you can see the EC2 dashboard. On the EC2 dashboard, there's the AMI catalog. If you select Free tier only, then you are using free tier AMIs images and what you need to be looking for is this option ENA enabled: Yes. If you don't…