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

Validation error updating Cloudfront distribution #2007

Open
djimenez-savi opened this issue Feb 20, 2024 · 1 comment
Open

Validation error updating Cloudfront distribution #2007

djimenez-savi opened this issue Feb 20, 2024 · 1 comment
Labels
bug Something isn't working stale

Comments

@djimenez-savi
Copy link

What happened?

Having created successfully a Cloudfront distribution and then trying to update the Distribution I am getting multiple validation errors.

  • missing required field, UpdateDistributionInput.DistributionConfig.Aliases.Quantity.
  • missing required field, UpdateDistributionInput.DistributionConfig.CacheBehaviors.Quantity.
  • missing required field, UpdateDistributionInput.DistributionConfig.CustomErrorResponses.Quantity.
  • missing required field, UpdateDistributionInput.DistributionConfig.DefaultCacheBehavior.ForwardedValues.QueryStringCacheKeys.Quantity.
  • missing required field, UpdateDistributionInput.DistributionConfig.DefaultCacheBehavior.FunctionAssociations.Quantity.
  • missing required field, UpdateDistributionInput.DistributionConfig.DefaultCacheBehavior.LambdaFunctionAssociations.Quantity.
  • missing required field, UpdateDistributionInput.DistributionConfig.DefaultCacheBehavior.TrustedKeyGroups.Quantity.
  • missing required field, UpdateDistributionInput.DistributionConfig.DefaultCacheBehavior.TrustedSigners.Quantity.
  • missing required field, UpdateDistributionInput.DistributionConfig.OriginGroups.Quantity.
  • missing required field, UpdateDistributionInput.DistributionConfig.Origins.Items[1].CustomHeaders.Quantity.
  • missing required field, UpdateDistributionInput.DistributionConfig.Restrictions.GeoRestriction.Quantity.

How can we reproduce it?

Create a Distribution applying the following manifest:

apiVersion: cloudfront.aws.crossplane.io/v1alpha1
kind: Distribution
metadata:
  name: distribution-example
spec:
  deletionPolicy: Delete
  forProvider:
    distributionConfig:
      comment: distribution-example
      defaultCacheBehavior:
        allowedMethods:
          cachedMethods:
            items:
              - GET
              - HEAD
          items:
            - DELETE
            - GET
            - POST
            - HEAD
            - OPTIONS
            - PATCH
            - PUT
        compress: false
        defaultTTL: 86400
        fieldLevelEncryptionID: ""
        forwardedValues:
          cookies:
            forward: all
          queryString: true
        maxTTL: 31536000
        minTTL: 0
        smoothStreaming: false
        targetOriginID: S3-coupon-templates
        viewerProtocolPolicy: redirect-to-https
      defaultRootObject: ""
      enabled: true
      httpVersion: http2
      isIPV6Enabled: true
      logging:
        bucket: ""
        enabled: false
        includeCookies: false
        prefix: ""
      origins:
        items:
          - connectionAttempts: 3
            connectionTimeout: 10
            domainName: valassis-sandbox-coupon-templates.s3.eu-west-1.amazonaws.com
            id: S3-coupon-templates
            originPath: ""
            originShield:
              enabled: false
            s3OriginConfig:
              originAccessIdentity: ""
      priceClass: PriceClass_All
      viewerCertificate:
        certificateSource: cloudfront
        cloudFrontDefaultCertificate: true
        minimumProtocolVersion: TLSv1
        sslSupportMethod: vip
      webACLID: ""
    region: eu-west-1
  providerConfigRef:
    name: default


Then modify any field, for example the comments field, reapply the manifest and see that the CR is not Synced and the errors are shown in the events.

What environment did it happen in?

  • Crossplane version: 1.15.0
  • Provider-aws: 0.46.0
  • Cloud provider AWS
  • Kubernetes version 1.27.0
  • Kubernetes distribution Kind
@djimenez-savi djimenez-savi added the bug Something isn't working label Feb 20, 2024
Copy link

Crossplane does not currently have enough maintainers to address every issue and pull request. This issue has been automatically marked as stale because it has had no activity in the last 90 days. It will be closed in 14 days if no further activity occurs. Leaving a comment starting with /fresh will mark this issue as not stale.

@github-actions github-actions bot added the stale label May 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working stale
Projects
None yet
Development

No branches or pull requests

1 participant