Goal: Create a Terraform provider / resource / variable
Select main.tf in the file tree and add the following Terraform code: provider "aws" { region = var.aws_region }
provider "aws" { region = var.aws_region }
Click SAVE
Select variables.tf in the file tree and the following Terraform code: variable "aws_region" { }
variable "aws_region" { }
Click + ADD and select Terraform File and set File Path to ecr.tf
ecr.tf
Add the following Terraform code: resource "aws_ecr_repository" "tutorial" { name = "tutorial" }
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
Last updated 6 years ago
Was this helpful?