Multiple runs of the same tests will try and be over greedy with DO instances
MODIFY
digitalocean-cs-loadbalanced-droplets/DropletStack.cs
digitalocean-cs-loadbalanced-droplets/DropletStack.cs
@@ -11,7 +11,7 @@ class DropletStack : Stack
var dropletCount = 3;
var region = "nyc3";
- var dropletTypeTag = new Tag("demo-app");
+ var dropletTypeTag = new Tag($"demo-app-{Pulumi.Deployment.Instance.ProjectName}");
var userData = @"
#!/bin/bash

MODIFY
digitalocean-py-loadbalanced-droplets/__main__.py
digitalocean-py-loadbalanced-droplets/__main__.py
import pulumi_digitalocean as do
-from pulumi import export
+from pulumi import export, get_stack
droplet_count = 3
region = "nyc3"
@@ -9,8 +9,8 @@ user_data = """#!/bin/bash
sudo apt-get install -y nginx
"""
-droplet_type_tag = do.Tag("demo-app")
-
+droplet_type = "demo-app-%s" %get_stack()
+droplet_type_tag = do.Tag(droplet_type)
for x in range(0, droplet_count):
instance_name = "web-%s" %x

MODIFY
digitalocean-ts-loadbalanced-droplets/index.ts
digitalocean-ts-loadbalanced-droplets/index.ts
// Copyright 2016-2019, Pulumi Corporation. All rights reserved.
+import * as pulumi from "@pulumi/pulumi";
import * as digitalocean from "@pulumi/digitalocean";
const dropletCount = 3;
const region = digitalocean.Regions.NYC3;
-const dropletTypeTag = new digitalocean.Tag("demo-app");
+const dropletTypeTag = new digitalocean.Tag(`demo-app-${pulumi.getStack()}`);
const userData =
`#!/bin/bash
sudo apt-get update

Multiple runs of the same tests will try and be over greedy with DO instances (#891)