Skip to content

aws.cloudfront.VpcOrigin broken #5977

@durist

Description

@durist

Describe what happened

Currently aws.cloudfront.VpcOrigin is broken; trying to use it results in this error:

error:   flex/autoflex_expand.go:142: provider.autoflex: Source does not implement attr.Value: autoflex.source.type=github.com/hashicorp/terraform-provider-aws/internal/service/cloudfront.originSSLProtocolsModel autoflex.target.type=github.com/aws/aws-sdk-go-v2/service/cloudfront/types.SslProtocol [email protected] autoflex.source.path="" autoflex.target.path=""
    error: Incompatible Types: An unexpected error occurred while expanding configuration. This is always an error in the provider. Please report the following to the provider developer:
    
    Source type "github.com/hashicorp/terraform-provider-aws/internal/service/cloudfront.originSSLProtocolsModel" does not implement attr.Value

There is a bug report for this in the terraform provider:
hashicorp/terraform-provider-aws#44691

This has apparently been fixed in v.6.20.0 of the terraform provider.

Sample program

alb_origin = aws.cloudfront.VpcOrigin("alb_origin",
                                      vpc_origin_endpoint_config={
                                          "name": "vpc-origin-alb",
                                          "arn": alb_arn,
                                          "http_port": 80,
                                          "https_port": 443,
                                          "origin_protocol_policy": "http-only",
                                          "origin_ssl_protocols": {
                                              "items": ["TLSv1.2"],
                                              "quantity": 1,
                                          },
                                      }
                                      )

Log output

No response

Affected Resource(s)

aws.cloudfront.VpcOrigin

Output of pulumi about

CLI
Version 3.207.0
Go Version go1.25.4
Go Compiler gc

Plugins
KIND NAME VERSION
resource aws 7.11.1
resource awsx 3.1.0
resource command 1.1.3
resource docker 4.10.0
resource docker-build 0.0.15
language python 3.207.0

Host
OS debian
Version 12.12
Arch x86_64

Additional context

No response

Contributing

Vote on this issue by adding a 👍 reaction.
To contribute a fix for this issue, leave a comment (and link to your pull request, if you've opened one already).

Metadata

Metadata

Labels

kind/bugSome behavior is incorrect or out of specresolution/fixedThis issue was fixed

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions