While migrating from rebuy-de/aws-nuke to libnuke in fluxcd/test-infra#39, aws-nuke failed to delete EKSCluster. There were multiple errors. Some of them related to removing role from instance profile that lead me to rebuy-de/aws-nuke#702, which didn't lead to any conclusion. But @ekristen your last comment about limiting the resource types lead me to checking the includes that I have configured.
Coming from rebuy-de/aws-nuke, I had EKSNodegroups in my configuration. I did see the warning
WARN[0002] deprecated resource type 'EKSNodegroups' - converting to 'EKSNodegroup'
but the listed resources didn't contain any nodegroup. When I used the new name, it worked perfectly.
In Config.ResolveDeprecations(), refer https://github.com/ekristen/libnuke/blob/v0.16.0/pkg/config/config.go#L239-L255, where this conversion takes place, only the Account.Filters are updated with the new replacement. The Account.ResourceTypes.Includes and other fields remain as they are. I'm not sure if this is intended but I tried replacing the includes as well in a local copy and that made it work as expected. Is this the intended behavior for deprecation resolution?
While migrating from rebuy-de/aws-nuke to libnuke in fluxcd/test-infra#39, aws-nuke failed to delete EKSCluster. There were multiple errors. Some of them related to removing role from instance profile that lead me to rebuy-de/aws-nuke#702, which didn't lead to any conclusion. But @ekristen your last comment about limiting the resource types lead me to checking the includes that I have configured.
Coming from rebuy-de/aws-nuke, I had
EKSNodegroupsin my configuration. I did see the warningbut the listed resources didn't contain any nodegroup. When I used the new name, it worked perfectly.
In
Config.ResolveDeprecations(), refer https://github.com/ekristen/libnuke/blob/v0.16.0/pkg/config/config.go#L239-L255, where this conversion takes place, only theAccount.Filtersare updated with the new replacement. TheAccount.ResourceTypes.Includesand other fields remain as they are. I'm not sure if this is intended but I tried replacing the includes as well in a local copy and that made it work as expected. Is this the intended behavior for deprecation resolution?