Skip to content

Commit

Permalink
subnet_id for instance
Browse files Browse the repository at this point in the history
  • Loading branch information
aleksandarknezevic committed Jan 12, 2022
1 parent 380ff19 commit 3683f58
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ec2.tf
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ resource "aws_instance" "instance" {
key_name = var.ssh_key_name
vpc_security_group_ids = length(compact(var.additional_security_group_ids)) != 0 ? concat([aws_security_group.vpn.id], var.additional_security_group_ids) : [aws_security_group.vpn.id]
associate_public_ip_address = true
subnet_id = var.vpc_subnet_id

user_data_base64 = data.template_cloudinit_config.config.rendered

Expand Down

0 comments on commit 3683f58

Please sign in to comment.