appvia / terranetes-controller

The terraform controller manages the life cycles of a terraform resource, allowing developers to self-serve dependencies in a controlled manner.
https://terranetes.appvia.io
GNU General Public License v2.0
152 stars 12 forks source link

Can't create bucket with name 'helloworld', when following the steps in Quickstart. #1458

Closed fleeto closed 2 months ago

fleeto commented 2 months ago

Describe the bug I am unable to complete the steps described in the Quickstart documentation. After annotating the CloudResource object, creating the Bucket fails.

To Reproduce

A brand new kubernetes cluster, and an AWS account with valid AK/SK.

Just follow the steps in the Quickstart.

apiVersion: terraform.appvia.io/v1alpha1
kind: CloudResource
metadata:
  name: bucket
spec:
  plan:
    name: bucket
    revision: v0.0.1
  providerRef:
    name: aws
  writeConnectionSecretToRef:
    name: test
  variables:
    bucket: helloworld

Expected behavior

The bucket should be created after kubectl annotation.

Screenshots If applicable, add screenshots to help explain your problem.

Additional context

Log:

Error: creating S3 Bucket (helloworld): operation error S3: CreateBucket, https response error StatusCode: 409, RequestID: [ ], HostID: [ ], BucketAlreadyExists: