a

    adamant-father-26302

    5 months ago
    hey, anyone know why this policy https://kopy.io/zKB0K#0fwwupWqyltsMo generates this error ?:
    Error: Program run without the Pulumi engine available; re-run using the `pulumi` CLI
    seems doing
    await aws.ec2.getSubnet({ id: '123' });
    inside
    validateResourceOfType
    function is enough to generate the error
    ah, you need to initialize the ec2 sdk before you can use those methods.
    const ec2 = new aws.sdk.EC2({ region: aws.config.region });