sparse-intern-71089
01/16/2021, 5:47 PMcool-fireman-90027
01/19/2021, 1:51 PMsticky-ram-39640
01/19/2021, 3:13 PMconst vpcName = "k8s-ue2-dev";
const vpc = new awsx.ec2.Vpc(vpcName, {
tags: { Name: vpcName },
});
const cluster = new eks.Cluster("myCluster", {
// This works, but if I remove the `providerCredentialOpts I get the above error
providerCredentialOpts: {},
roleMappings: [
// Provides full administrator cluster access to the k8s cluster
{
groups: ["system:masters"],
roleArn: clusterAdminRole.arn,
username: "pulumi:admin-usr",
},
// Map IAM role arn "AutomationRoleArn" to the k8s user with name "automation-usr", e.g. gitlab CI
{
groups: ["pulumi:automation-grp"],
roleArn: automationRole.arn,
username: "pulumi:automation-usr",
},
// Map IAM role arn "EnvProdRoleArn" to the k8s user with name "prod-usr"
{
groups: ["pulumi:prod-grp"],
roleArn: envProdRole.arn,
username: "pulumi:prod-usr",
},
],
vpcId: vpc.id,
publicSubnetIds: vpc.publicSubnetIds,
privateSubnetIds: vpc.privateSubnetIds,
instanceType: "t2.small",
desiredCapacity: 2,
minSize: 2,
maxSize: 2,
});
This is my whole configuration for the eks cluster. I managed to create it by adding an empty providerCredentialOpts
, but i’m not sure if this is what I should be doingcool-fireman-90027
01/19/2021, 8:29 PMproviderCredentialOpts
completely.
cluster link: https://share.getcloudapp.com/12uKwKq5No matter how you like to participate in developer communities, Pulumi wants to meet you there. If you want to meet other Pulumi users to share use-cases and best practices, contribute code or documentation, see us at an event, or just tell a story about something cool you did with Pulumi, you are part of our community.
Powered by