Skip to content

Instantly share code, notes, and snippets.

@sheenobu
Last active October 4, 2022 15:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sheenobu/a58297508055a3e4c83aee1b5f38432e to your computer and use it in GitHub Desktop.
Save sheenobu/a58297508055a3e4c83aee1b5f38432e to your computer and use it in GitHub Desktop.
import * as pulumi from '@pulumi/pulumi';
import * as aws from '@pulumi/aws';
const stubprovider : pulumi.dynamic.ResourceProvider = {
async create(inputs) {
throw new Error("unexpected");
},
}
export class VPC extends pulumi.dynamic.Resource {
id: pulumi.Output<string>;
constructor() {
const opts = {
aliases: [ "urn:pulumi:production::infra::aws:ec2/vpc:Vpc::$name-vpc" ],
};
super(stubprovider, '$name-vpc', {}, opts);
this.id = pulumi.output('vpc-$id');
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment