Skip to content

Commit

Permalink
adding tests and fixing
Browse files Browse the repository at this point in the history
  • Loading branch information
corymhall committed May 30, 2024
1 parent 09eaad8 commit 0c6f1c6
Show file tree
Hide file tree
Showing 4 changed files with 206 additions and 106 deletions.
11 changes: 6 additions & 5 deletions examples/alb/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,21 +7,22 @@ import * as aws from '@pulumi/aws';
import { Construct } from 'constructs';

class AlbStack extends pulumicdk.Stack {

url: pulumi.Output<string>;

constructor(id: string, options?: pulumicdk.StackOptions) {
super(id, options);
// necessary for local testing
const t = this as any;

const vpc = new ec2.Vpc(this, 'VPC');
const vpc = new ec2.Vpc(t, 'VPC');

const asg = new autoscaling.AutoScalingGroup(this, 'ASG', {
const asg = new autoscaling.AutoScalingGroup(t, 'ASG', {
vpc,
instanceType: ec2.InstanceType.of(ec2.InstanceClass.T2, ec2.InstanceSize.MICRO),
machineImage: new ec2.AmazonLinuxImage(),
});

const lb = new elbv2.ApplicationLoadBalancer(this, 'LB', {
const lb = new elbv2.ApplicationLoadBalancer(t, 'LB', {
vpc,
internetFacing: true,
});
Expand Down
Loading

0 comments on commit 0c6f1c6

Please sign in to comment.