Put in order · NestJS course · Module 12: Containers and CI/CD

Resource definition in Terraform

Arrange the elements of an EC2 resource definition in Terraform (from outer to inner):

Items to put in order

  • tags = { Name = "api-server" }
  • ami = "ami-0c55b159..."
  • resource "aws_instance" "api_server" {

You can check the correct answer by solving this task in the CodeWorlds game.