Skip to content

Commit

Permalink
Add network interface
Browse files Browse the repository at this point in the history
  • Loading branch information
frenzymilk committed Feb 27, 2024
1 parent 0bfa2b2 commit b4e3125
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions terraform_labs_aws/lab-004/lab-004.tf
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,9 @@ resource "aws_instance" "bastion_ec2" {
tags = {
Name = "bastion-ec2"
}
key_name = var.ec2_ssh_key
#subnet_id = aws_subnet.lab_004_public_sub.id
key_name = var.ec2_ssh_key
network_interface_id = aws_network_interface.bastion_eni.id
subnet_id = aws_subnet.lab_004_public_sub.id
vpc_security_group_ids = [aws_security_group.nat_bastion_access_sg.id]

user_data = <<-EOL
Expand Down

0 comments on commit b4e3125

Please sign in to comment.