millions-market-17062
01/11/2021, 1:35 PMerror: aws:ec2/launchConfiguration:LaunchConfiguration resource 'eks-matan-ng1-nodeLaunchConfiguration' has a problem: Attribute must be a single value, not a list
brave-planet-10645
01/11/2021, 1:45 PMmillions-market-17062
01/11/2021, 1:48 PM"use strict";
const pulumi = require("@pulumi/pulumi");
const aws = require("@pulumi/aws");
const awsx = require("@pulumi/awsx");
const eks = require("@pulumi/eks");
const kubernetes = require("@pulumi/kubernetes");
const name = "eks-matan";
// Create an EKS cluster with non-default configuration
const vpc = new awsx.ec2.Vpc("vpc-eks-matan",
{ subnets: [{ type: "public" },{ type: "private"}],
cidrBlock: "10.20.0.0/16",
tags: [{ test: "matan" }]});
const cluster = new eks.Cluster(name, {
vpcId: vpc.id,
subnetIds: vpc.privateSubnetIds,
storageClasses: "gp2",
nodeAssociatePublicIpAddress: false,
skipDefaultNodeGroup: true,
});
const fixedNodeGroup = cluster.createNodeGroup("eks-matan-ng1", {
instanceType: "t2.medium",
desiredCapacity: 1,
minSize: 1,
maxSize: 2,
labels: {"ondemand": "true"},
instanceProfile: cluster.instanceRoles
});
const spotNodeGroup = new eks.NodeGroup("eks-matan-ng2", {
cluster: cluster,
instanceType: "t2.medium",
desiredCapacity: 1,
spotPrice: "1",
minSize: 1,
maxSize: 2,
labels: {"preemptible": "true"},
instanceProfile: cluster.instanceRoles,
taints: {
"special": {
value: "true",
effect: "NoSchedule",
},
},
}, {
providers: { kubernetes: cluster.provider},
});
exports.kubeconfig = cluster.kubeconfig;
exports.fixedNodeGroup = fixedNodeGroup;
exports.spotNodeGroup = spotNodeGroup;
exports.vpc = vpc;
cool-fireman-90027
01/11/2021, 5:49 PM0.05
instead of $1.00.
Here is Pulumi.dev.yaml where I set the aws region.
Let me know if you have any more questions.millions-market-17062
01/12/2021, 8:57 AMcool-fireman-90027
01/12/2021, 12:44 PMmillions-market-17062
01/12/2021, 2:43 PMcool-fireman-90027
01/12/2021, 4:59 PMpulumi config set cluster_name REPLACEWITHYOURNAME
pulumi config
KEY VALUE
aws:region us-east-2
cluster_name shaht
Then when you do pulumi up
you will have an ekscluster with the name of
shaht-eksCluster-182169f
https://share.getcloudapp.com/d5uPd4br
Here is where the code takes in the name.
This is where the cluster name is set
The cluster takes the name that you passed in and adds does auto-naming.millions-market-17062
01/13/2021, 8:36 AMcool-fireman-90027
01/13/2021, 1:46 PMmillions-market-17062
01/14/2021, 8:48 AM