https://pulumi.com logo
#general
Title
# general
a

adamant-father-26302

04/20/2022, 4:08 PM
hey, anyone know why this policy https://kopy.io/zKB0K#0fwwupWqyltsMo generates this error ?:
Copy code
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.
Copy code
const ec2 = new aws.sdk.EC2({ region: aws.config.region });
2 Views