This message was deleted.
# aws
s
This message was deleted.
f
tried updating to latest
@pulumi/aws@^5.34.0
still seeing this
g
Which properties are different in diff? I do not have this problem.
f
I have this code:
Copy code
viewerCertificate: {
        cloudfrontDefaultCertificate: true,
        acmCertificateArn: certificate.arn,
        sslSupportMethod: "sni-only",
      },
when deploying pulumi keeps telling me there is diff on
viewerCertificate.cloudfrontDefaultCertificate
until I manually set it to
true
in state file using export/import
here is the diff I get:
Copy code
~ aws:cloudfront/distribution:Distribution: (update)
        [id=E25WQJM7MXXX]
        [urn=urn:pulumi:XXX]
        [provider=urn:pulumi:XXX]
      ~ viewerCertificate: {
          ~ cloudfrontDefaultCertificate: false => true
        }
g
ouch, I just found out I have it disabled (by default) cuz I also set the minimum protocol version I'd recommend checking terraform issues https://github.com/hashicorp/terraform-provider-aws TF uses
snake_case
https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/cloudfront_distribution#viewer_certificate
g
hmm, I wonder what's your usecase for default certificate, maybe it would be easier to use a wildcard ACM certificate.