Hey! I'm recieving an error when using the `aws.cl...
# aws
b
Hey! I'm recieving an error when using the
aws.cloudfront.VpcOrigin
resource. It seems that the child config of
vpcOriginEndpointConfig
requires the parent resources
arn
. The code example in the official documentation reference
_this.arn
for the TypeScript example, but _this is not defined, and I am unable to use the resource in the documented way. Is the only solution to create the VpcOrigin without an endpoint configuration, fetch the resource to get the
arn
and then attempt to patch the
vpcOriginEndpointConfig
after?
Scratch this! The documentation isn't super clear. I cross-referenced the pulumi docs against the CDK docs to understand what the value is supposed to be. In this case, the ARN for the load balancer. I'd suggest making this clearer in the examples by not referencing
this
but instead a small reproducible demo of creating an ELB and assigning the ARN correctly. Perhaps the type definition could do with some work too as
The VPC origin ARN
is ambiguous.
q
Thanks a lot for that feedback @best-egg-43882! Do you mind opening an issue about this here: https://github.com/pulumi/pulumi-aws/issues/new/choose