-
Notifications
You must be signed in to change notification settings - Fork 0
/
eks-bastion.tf
26 lines (23 loc) · 1.02 KB
/
eks-bastion.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
######## ### ###### ######## #### ####### ## ##
## ## ## ## ## ## ## ## ## ## ### ##
## ## ## ## ## ## ## ## ## #### ##
######## ## ## ###### ## ## ## ## ## ## ##
## ## ######### ## ## ## ## ## ## ####
## ## ## ## ## ## ## ## ## ## ## ###
######## ## ## ###### ## #### ####### ## #
resource "aws_eip" "demo-eks-eip" {
instance = "${aws_instance.demo-eks-bastion.id}"
vpc = true
}
resource "aws_instance" "demo-eks-bastion" {
ami = "${lookup(var.amis, var.region)}"
instance_type = "t2.micro"
availability_zone = "us-west-2a"
key_name = "${aws_key_pair.eks-keypair.key_name}"
subnet_id = "${aws_subnet.eks-public-subnet-2a.id}"
vpc_security_group_ids = ["${aws_security_group.demo-eks-sg.id}"]
associate_public_ip_address = true
tags {
Name = "EKS-Bastion-Host"
}
}