Skip to content

S3 - Creating a Bucket with publicAccessBlock results in status: This resource already exists but is not managed by ACK #2670

@khalilj

Description

@khalilj

Describe the bug
I'm trying to create the below bucket:

apiVersion: s3.services.k8s.aws/v1alpha1
kind: Bucket
metadata:
  name: khalil-bucket-policy-test3
spec:
  name: khalil-bucket-policy-test3
  publicAccessBlock: 
    blockPublicACLs: true
    blockPublicPolicy: true
    ignorePublicACLs: true
    restrictPublicBuckets: true

The bucket didn't exists before, ACK resource shows the following status:

  conditions:
  - lastTransitionTime: "2025-11-04T15:57:42Z"
    message: Resource already exists
    reason: This resource already exists but is not managed by ACK. To bring the resource
      under ACK management, you should explicitly adopt the resource by enabling the
      ResourceAdoption feature gate and populating the `services.k8s.aws/adoption-policy`
      and `services.k8s.aws/adoption-fields` annotations.
    status: "True"
    type: ACK.Terminal

Removing the publicAccessBlock configuration and the same bucket is created successfully.

Environment
AWS service targeted: S3
Chart: aws-ack-s3-s3-chart-76d4f89db6-t2hn7
Controller image tag: s3-controller:1.1.1
Kubernetes version: v1.31.13-eks-113cf36
Using EKS: yes

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs-investigationIndicates an issue needs some investigation.service/s3Indicates issues or PRs that are related to s3-controller.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions