famous-leather-7283006/13/2022, 10:01 AM
? I am following the micro-service methodology, and keeping my eks cluster (created with
in a separate project from the apps that will run on it. My goal is to make each project create their own AWS Managed Node Group, however it requires to provide a direct
object, and upon viewing the logic of creation,
doesn't provide sufficient properties. Any help would be appreciated, as it's a massive blocker for me.
damp-honey-9315806/13/2022, 11:00 AM
famous-leather-7283006/13/2022, 11:32 AM
) It's not about the downstream users, it's about parts of Pulumi being too reliant on the full resources.
Error: 'dependsOn' was passed a value that was not a Resource.
damp-honey-9315806/13/2022, 11:55 AM
famous-leather-7283006/13/2022, 12:21 PM
Then I have separate projects for the pieces of our stack (things like web servers, api servers, databases, etc) These have their infrastructure defined in separate repositories, using their own Pulumi project (the stack/environment is shared, like dev, qa, staging). These projects will have their own deployments that run on the parent cluster, inside their own namespace. I would like to create a unique AWS Managed Node Group with its own unique configuration for each such namespace. Managed node groups are created via
and according to the file linked above, and this https://www.pulumi.com/blog/aws-eks-managed-nodes-fargate/#automatically-managed-node-groups cluster needs to be passed as a property during the managed node group creation.
rhythmic-whale-4899711/09/2022, 1:45 PM
famous-leather-7283011/09/2022, 7:14 PM
I exported VPC (subnets, oidc, etc) info and cluster info from the cluster project, imported them in one of my service projects, and then replicated what
internally does using all this data. (you can go to their GitHub page and see what code they use, but it's just another wrapper around the base eks tools)
rhythmic-whale-4899711/10/2022, 7:37 AM
function? 😄 You can leave the sensitive parts out. I was also considering to do this, but didn't have the time, and it looks little bit complicated, but I will try that next