mirror of
https://github.com/farcasclaudiu/terraform-course.git
synced 2026-06-22 07:01:56 +03:00
eks changes
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
data "aws_ami" "eks-worker" {
|
||||
filter {
|
||||
name = "name"
|
||||
values = ["amazon-eks-node-1*"]
|
||||
values = ["amazon-eks-node-${aws_eks_cluster.demo.version}-v*"]
|
||||
}
|
||||
|
||||
most_recent = true
|
||||
@@ -25,7 +25,7 @@ resource "aws_launch_configuration" "demo" {
|
||||
associate_public_ip_address = true
|
||||
iam_instance_profile = "${aws_iam_instance_profile.demo-node.name}"
|
||||
image_id = "${data.aws_ami.eks-worker.id}"
|
||||
instance_type = "t2.medium"
|
||||
instance_type = "t2.large"
|
||||
name_prefix = "terraform-eks-demo"
|
||||
security_groups = ["${aws_security_group.demo-node.id}"]
|
||||
user_data_base64 = "${base64encode(local.demo-node-userdata)}"
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
module "vpc" {
|
||||
source = "terraform-aws-modules/vpc/aws"
|
||||
version = "~> v1.0"
|
||||
|
||||
name = "vpc-module-demo"
|
||||
cidr = "10.0.0.0/16"
|
||||
|
||||
Reference in New Issue
Block a user