File: main.tf

package info (click to toggle)
golang-github-hashicorp-terraform-json 0.5.0-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 2,572 kB
  • sloc: makefile: 31
file content (16 lines) | stat: -rw-r--r-- 238 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
provider "aws" {
  region = "us-east-1"
}

variable "foo" {
  default = "/dev/sda1"
}

resource "aws_instance" "foo" {
  ami           = "ami-foobar"
  instance_type = "t2.micro"

  ebs_block_device {
    device_name = "${var.foo}"
  }
}