ecr: Instance cannot be destroyed: Resource xxx.yyy has lifecycle.prevent_destroy
set (LifecyclePolicy
, PullThroughCacheRule
)
#572
Labels
lifecycle.prevent_destroy
set (LifecyclePolicy
, PullThroughCacheRule
)
#572
What happened?
Unable to modify existing Crossplane
ecr
resources (LifecyclePolicy
,PullThroughCacheRule
). Attempting to do so results inlifecycle.prevent_destroy
errors.LifecyclePolicy:
PullThroughCacheRule:
Initially, I figured this was because resources had
deletionPolicy: Orphan
. However, after testing withdeletionPolicy: Delete
, the results were the same error.Of the 7 resources in the
ecr.aws.upbound.io
group, only those 2 exhibit this behavior. All were tested withdeletionPolicy: Delete
.Since it only occurs for 2/7 resource, it feels as if this is not the intended behavior. The only work-around I've found is to manually delete the resource and have Crossplane re-create it.
Registry
Repository
How can we reproduce it?
spec.forProvider
parameter. I've been usingpolicy
for LifecyclePolicy andecrRepositoryPrefix
for PullThroughCacheRule.What environment did it happen in?
kubectl version
)The text was updated successfully, but these errors were encountered: