Last active
October 4, 2022 15:35
-
-
Save sheenobu/a58297508055a3e4c83aee1b5f38432e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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