Skip to content

Commit

Permalink
Add variable in example for prefix.
Browse files Browse the repository at this point in the history
  • Loading branch information
ninthnails committed Mar 30, 2020
1 parent d1a8554 commit 29ba22e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion examples/aws-private-image/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ variable "aws_region" {
default = "us-east-1"
}

variable "prefix" {
default = "camellia-example"
}

variable "vpc_id" {
}

Expand Down Expand Up @@ -34,7 +38,7 @@ provider "random" {
module "image" {
source = "../../"
packer_template = "aws-private.json"
prefix = "camellia-example"
prefix = var.prefix
subnet_ids = var.private_subnet_ids
vpc_id = var.vpc_id
}
Expand Down

0 comments on commit 29ba22e

Please sign in to comment.