Skip to content

Commit

Permalink
move documentaton added
Browse files Browse the repository at this point in the history
  • Loading branch information
Soham Kalghatgi committed Nov 22, 2024
1 parent 8721f24 commit c8c4626
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions MAINTENANCE.md
Original file line number Diff line number Diff line change
Expand Up @@ -253,3 +253,42 @@ terraform apply
```
4. Remove `move.tf` file


# Migrate aws_load_balancer_controller addon to the module
To migrate from terraform-aws-eks-blueprint addon aws_load_balancer_controller to custom module `modules/k8s_eks_addons/aws-load-balancer-controller.tf` follow steps:

1. create 'move.tf' in repository root
2. Add following code:
```
moved {
from = module.eks-addons.module.aws_load_balancer_controller[0].data.aws_iam_policy_document.aws_load_balancer_controller
to = module.k8s_eks_addons.data.aws_iam_policy_document.aws_load_balancer_controller[0]
}
moved {
from = module.eks-addons.module.aws_load_balancer_controller[0].aws_iam_policy.aws_load_balancer_controller
to = module.k8s_eks_addons.aws_iam_policy.aws_load_balancer_controller[0]
}
moved {
from = module.eks-addons.module.aws_load_balancer_controller[0].module.helm_addon.helm_release.addon[0]
to = module.k8s_eks_addons.helm_release.aws_load_balancer_controller[0]
}
moved {
from = module.eks-addons.module.aws_load_balancer_controller[0].module.helm_addon.module.irsa[0].aws_iam_role.irsa[0]
to = module.k8s_eks_addons.aws_iam_role.aws_load_balancer_controller[0]
}
moved {
from = module.eks-addons.module.aws_load_balancer_controller[0].module.helm_addon.module.irsa[0].aws_iam_role_policy_attachment.irsa[0]
to = module.k8s_eks_addons.aws_iam_role_policy_attachment.aws_load_balancer_controller[0]
}
moved {
from = module.eks-addons.module.aws_load_balancer_controller[0].module.helm_addon.module.irsa[0].kubernetes_service_account_v1.irsa[0]
to = module.k8s_eks_addons.kubernetes_service_account_v1.aws_load_balancer_controller[0]
}
```
3. Run command:
```
terraform apply
```
4. Remove `move.tf` file

0 comments on commit c8c4626

Please sign in to comment.