Skip to content

Commit

Permalink
Vars: add bastion userdata var
Browse files Browse the repository at this point in the history
Signed-off-by: darox <[email protected]>
  • Loading branch information
darox committed Jun 11, 2024
1 parent 3e6a80e commit 4f631e1
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
2 changes: 2 additions & 0 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -170,4 +170,6 @@ module "bastion" {
subnets = var.bastion_host_assign_public_ip ? module.vpc.public_subnets : module.vpc.private_subnets
tags = var.tags
vpc_id = module.vpc.vpc_id
user_data = var.bastion_host_user_data
user_data_base64 = var.bastion_host_user_data_base64
}
12 changes: 12 additions & 0 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,18 @@ variable "bastion_host_ssh_public_key" {
type = string
}

variable "bastion_host_user_data" {
default = []
description = "The user data to use for the bastion host."
type = string
}

variable "bastion_host_user_data_base64" {
default = ""
description = "The user data to use for the bastion host, base64 encoded."
type = string
}

variable "cidr" {
description = "The CIDR to be used for the VPC."
type = string
Expand Down

0 comments on commit 4f631e1

Please sign in to comment.