Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

S3 websiteConfiguration is not working #1155

Closed
BhavyaSree opened this issue Feb 18, 2022 · 1 comment
Closed

S3 websiteConfiguration is not working #1155

BhavyaSree opened this issue Feb 18, 2022 · 1 comment
Labels
bug Something isn't working

Comments

@BhavyaSree
Copy link

Slack thread: https://crossplane.slack.com/archives/CEG3T90A1/p1645139809042389

What happened?

When we are creating the s3 bucket with websiteConfiguration, bucket is being created in the console without website config and the bucket is in NOT READY status on the cluster stating cannot create or update: api error MalformedXML: The XML you provided was not well-formed or did not validate against our published schema.
We are trying to convert s3 bucket from cloudformation to crossplane.
CloudFormation

      WebsiteConfiguration:
        ErrorDocument: bb-test-docs/error.html
        IndexDocument: index.html

Crossplane

    websiteConfiguration:
      errorDocument: 
        key: 'bb-test-docs/error.html'
      indexDocument: 
        suffix: 'index.html'

How can we reproduce it?

Create a bucket with the following

apiVersion: s3.aws.crossplane.io/v1beta1
kind: Bucket
metadata:
  name: bb-test-bucket-temp
spec:
  forProvider:
    acl: private
    locationConstraint: us-west-2
    publicAccessBlockConfiguration:
      blockPublicAcls: true
      blockPublicPolicy: true
      ignorePublicAcls: true
      restrictPublicBuckets: true
    tagging:
      tagSet:
        - key: Application
          value: value
    websiteConfiguration:
      errorDocument: 
       key: bb-test-docs/error.html
      indexDocument: 
       suffix: index.html
  providerConfigRef:
    name: crossplane-provider-config

Bucket is in NOT READY status

NAME                           READY   SYNCED   AGE
bb-test-bucket-temp             False   False   7m8s

with Warning CannotUpdateExternalResource 41s (x16 over 12m) managed/bucket.s3.aws.crossplane.io cannot create or update: api error MalformedXML: The XML you provided was not well-formed or did not validate against our published schema

What environment did it happen in?

Crossplane version:
DockerImage: v1.5.0

@BhavyaSree BhavyaSree added the bug Something isn't working label Feb 18, 2022
@haarchri
Copy link
Member

Fixed by #1156

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants