From the course: AWS Global Networking in Terraform

Unlock this course with a free trial

Join today to access over 24,700 courses taught by industry experts.

Demo: Deploy Terraform variables

Demo: Deploy Terraform variables

- For our first official Terraform act, we are going to go ahead and deploy a couple of more global variables as resources. And so let's go ahead and take a look at the actual Terraform code. And I've got the GitHub repo here. So if we go under global to begin with, you'll see that there's a directory for prod and we have a couple of files and I've put a prefix of an underscore in front of them just so we know that they're all essentially Terraform system files. Now the first one here, and this is going to be really important, we're going to see this all over the GitHub repo is backend. Now, on the backend, we are mentioning a couple of things here like the S3 bucket, and that has to match the name of the bucket that we created earlier. We also have a name of the Dynamo DB Table, Terraform State Locking. That also has to match what we created earlier and so does the region. Now, otherwise, we are encrypting all objects at rest in this backend. And the key for the backend object in the…

Contents