Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Record ts-lb-attach-ec2 upgrade test #1143

Merged
merged 5 commits into from
Nov 2, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion examples/ts-lb-attach-ec2/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@ import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
import * as awsx from "@pulumi/awsx";

const lb = new awsx.lb.ApplicationLoadBalancer("lb");
const vpc = new awsx.ec2.Vpc("vpc", { subnetSpecs: [{ type: "Public" }], natGateways: { strategy: "None"} });

const lb = new awsx.lb.ApplicationLoadBalancer("lb", { subnets: vpc.subnets });

// Get the id for the latest Amazon Linux AMI
const ami = aws.ec2.getAmiOutput({
Expand Down
6 changes: 2 additions & 4 deletions examples/ts-lb-attach-ec2/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,7 @@
},
"dependencies": {
"@pulumi/aws": "^6.0.0",
"@pulumi/awsx": "latest",
"@pulumi/pulumi": "^3.0.0"
},
"peerDependencies": {
"@pulumi/awsx": "latest"
}
}
}
5 changes: 4 additions & 1 deletion provider/provider_nodejs_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ func TestExamples(t *testing.T) {
//
// "ts-lb-with-subnets",
// "ts-lb-attach-lambda",
// "ts-lb-attach-ec2",
"ts-lb-attach-ec2",
// "vpc/nodejs/custom-provider",
// "vpc/nodejs/specific-vpc-layout",
// "vpc/nodejs/vpc-with-service-endpoint",
Expand All @@ -75,6 +75,9 @@ func test(dir string, opts ...providertest.Option) *providertest.ProviderTest {

providertest.WithBaselineVersion("1.0.6"),

// Ensure we use the same region for all tests - when recording and replaying.
providertest.WithConfig("aws:region", "us-west-2"),

providertest.WithExtraBaselineDependencies(map[string]string{
"aws": "5.42.0",
}),
Expand Down
Loading