Skip to content

Commit

Permalink
Make the test stack name random (#365)
Browse files Browse the repository at this point in the history
  • Loading branch information
komalali authored Jul 25, 2024
1 parent 2fcf06f commit c5722c2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
6 changes: 4 additions & 2 deletions examples/ts-deployment-settings/index.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
import * as pulumi from "@pulumi/pulumi";
import * as service from "@pulumi/pulumiservice";
import * as uuid from "uuid";

const config = new pulumi.Config();

const id = uuid.v4();

const stack = new service.Stack("my_stack", {
organizationName: "service-provider-test-org",
projectName: "my-new-project",
stackName: "my-new-stack",

stackName: id,
})

const settings = new service.DeploymentSettings("deployment_settings", {
Expand Down
6 changes: 4 additions & 2 deletions examples/ts-deployment-settings/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,12 @@
"name": "ts-deployment-settings",
"main": "index.ts",
"devDependencies": {
"@types/node": "^16"
"@types/node": "^16",
"@types/uuid": "^10.0.0"
},
"dependencies": {
"@pulumi/pulumi": "^3.0.0",
"@pulumi/pulumiservice": "^0.4.0"
"@pulumi/pulumiservice": "^0.22.0",
"uuid": "^10.0.0"
}
}

0 comments on commit c5722c2

Please sign in to comment.