Skip to content

Commit

Permalink
fixing tests (hopefully)
Browse files Browse the repository at this point in the history
  • Loading branch information
corymhall committed Sep 6, 2024
1 parent 3861f4b commit 79f627a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
6 changes: 5 additions & 1 deletion examples/alb/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,15 @@ class AlbStack extends pulumicdk.Stack {
port: 80,
});

listener.addTargets('Target', {
const tg = listener.addTargets('Target', {
port: 80,
targets: [asg],
});

// workaround for https://github.com/pulumi/pulumi-cdk/issues/62
const cfnTargetGroup = tg.node.defaultChild as elbv2.CfnTargetGroup;
cfnTargetGroup.overrideLogicalId('LBListenerTG');

listener.connections.allowDefaultPortFromAnyIpv4('Open to the world');

asg.scaleOnRequestCount('AModestLoad', {
Expand Down
1 change: 1 addition & 0 deletions examples/examples_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ func getBaseOptions(t *testing.T) integration.ProgramTestOptions {
"aws:region": envRegion,
"aws-native:region": envRegion,
},
RetryFailedSteps: true,
ExpectRefreshChanges: true,
SkipRefresh: true,
Quick: true,
Expand Down

0 comments on commit 79f627a

Please sign in to comment.