3.1 - Terraform Code
Goal: Create a Terraform provider / resource / variable
Last updated
Goal: Create a Terraform provider / resource / variable
Last updated
Select main.tf in the file tree and add the following Terraform code:
provider "aws" {
region = var.aws_region
}
Click SAVE
Select variables.tf in the file tree and the following Terraform code:
variable "aws_region" {
}
Click + ADD and select Terraform File and set File Path to ecr.tf
Add the following Terraform code:
resource "aws_ecr_repository" "tutorial" {
name = "tutorial"
}
Click ADD (or SAVE)
Click on FORM on the top-right corner to use the resource builder
Click on DOCS on the top-right corner to see the Terraform documentation for this resource