Skip to content

Commit

Permalink
adding ebs tf files
Browse files Browse the repository at this point in the history
  • Loading branch information
raghavanr committed Aug 22, 2018
1 parent 3cd6fbb commit 507b4cd
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 0 deletions.
13 changes: 13 additions & 0 deletions ebs.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
resource "aws_ebs_volume" "ebs" {
count = "${var.create} ? 1 : 0}"
availability_zone = "${var.availability_zone}"
encrypted = "${var.encrypted}"
kms_key_id = "${var.kms_key_id}"
size = "${var.size}"
type = "${var.type}"

tags {
Name = "${var.name}-0${count.index + 1}"
env = "${var.env}"
}
}
7 changes: 7 additions & 0 deletions output.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
output "volumeid" {
value = "${aws_ebs_volume.ebs.*.id}"
}

output "volumearn" {
value = "${aws_ebs_volume.ebs.*.arn}"
}
14 changes: 14 additions & 0 deletions variable.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
variable "availability_zone" {}
variable "kms_key_id" {}
variable "encrypted" {
default = "true"
}

variable "size" {}

variable "type" {}

variable "name" {}

variable "env" {}

0 comments on commit 507b4cd

Please sign in to comment.