aws-controllers-k8s/community

Cloudfront - delete a distribution which is not disabled

MalibuKoKo opened this issue · 0 comments

Describe the bug
message: "DistributionNotDisabled: The distribution you are trying to delete has not been disabled.\n\tstatus code: 409,

Steps to reproduce
Try to delete distribution resource which is enabled

apiVersion: cloudfront.services.k8s.aws/v1alpha1
kind: Distribution
metadata:
  name: foo
spec:
  distributionConfig:
    enabled: true
    ...

Expected outcome
Controller have to disable it and delete it

Environment

  • Kubernetes version: 1.28
  • Using EKS (yes/no), if so version? yes, v1.28.5-eks-5e0fdde
  • AWS service targeted (S3, RDS, etc.) : cloudfront