Repository navigation
Migrating EKS resources to use another lambda #33478
Unanswered
mukundjalan
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
We have an infrastructure created as below and use CDK in python to manage the CDK deployments
Importerkubectl_layer(KubectlV29Layer)KubectlProviderfrom itkubectl_provider.service_tokenas stack output:ProviderFrameworkEventLambdaArnkubectl_provider.role_arnas stack output:KubectlProviderRoleArnkubectl_provider.handler_role.role_arnas stack output:HandlerRoleArnDeployer1Importereks.KubernetesManifestobjectsDeployer2,Deployer3, ...,DeployerNThis setup has been working fine for us for past couple of months but we need to make certain enhancements to this so as to make it easier to accomplish this process based on the knowledge we gathered in the past year.
So, now, I want to move this setup to a better way of creating the importer stack. As I cannot use the same export value in the new stack, I created the stack as below retaining the old one until migration is complete
ImporterNewkubectl_layer(KubectlV29Layer)KubectlProviderfrom itkubectl_provider.service_tokenas stack output:ProviderFrameworkEventLambdaArnNewkubectl_provider.role_arnas stack output:KubectlProviderRoleArnNewkubectl_provider.handler_role.role_arnas stack output:HandlerRoleArnNewNow I want the
DeployerXstacks to make use ofImporterNew's output rather than the old one and later delete the stackImporteraltogether. Hence, I triedDeployerXImporterNeweks.KubernetesManifestobjectsWhen synthesising I see output like
and while deployment I get error in stack deployment and deployment is rolled back
How can I achieve this migration? It is OK if the manifests are overridden as we have
overwrite=Truefor all manifest objects but deletion and re-creation will not be useful as we have several resources deleting which can make our application unstable.All reactions