pulumi / pulumi-ai

222 stars 15 forks source link

Pulumi AI hallucinating on azure-native for CustomDomainHttps that does not exist #76

Closed tusharshahrs closed 3 months ago

tusharshahrs commented 3 months ago

What happened?

Managing secrets for custom domain HTTPS on Azure CDN in TypeScript

When using pulumi ai: https://www.pulumi.com/ai/answers/u2aQraLWtKe5cvnrr4zKmJ/setting-up-azure-cdn-with-https-and-custom-domain

the following resource does not exist: CustomDomainHttps

Example

The following resource does not exist in azure-native:cdn CustomDomainHttps

// Enable HTTPS on the custom domain using an Azure-managed certificate
const httpsEnabledCustomDomain = new cdn.CustomDomainHttps(`${cdnEndpointName}-https`, {
    resourceGroupName: resourceGroup.name,
    profileName: profile.name,
    endpointName: endpoint.name,
    domainName: customDomain.name,
    customHttpsConfiguration: {
        certificateSource: "Cdn", // Specifies that the certificate is managed by Azure CDN
        certificateSourceParameters: {
            certificateType: "Dedicated", // Use a dedicated certificate
        },
        protocolType: "ServerNameIndication", // SNI enables the service to use one IP address to serve multiple HTTPS websites
    },
    customDomainHttpsParameters: {
        certificateType: "Dedicated",

    },
});

Output of pulumi about

n/a

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).

AaronFriel commented 3 months ago

Hey Tushar, we're tracking an internal issue to regenerate this AI Answer. In the mean time, I've delisted it as containing incorrect code.

pulumi-bot commented 3 months ago

Cannot close issue:

Please fix these problems and try again.