Cleanup after PR feedback
MODIFY
aws-ts-twitter-athena/index.ts
aws-ts-twitter-athena/index.ts
@@ -9,7 +9,7 @@ const bucket = new aws.s3.Bucket("tweet-bucket", {
},
},
},
- forceDestroy: true, //we require this in the example as we are not managing the contents of the bucket via Pulumi
+ forceDestroy: true, // We require this in the example as we are not managing the contents of the bucket via Pulumi
});
let bucketName = bucket.id;

MODIFY
azure-ts-api-management/index.ts
azure-ts-api-management/index.ts
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
-// use first 10 characters of the stackname as prefix for resource names
-const prefix = pulumi.getStack().substring(0, 9);
-
// Create an Azure Resource Group
-const resourceGroup = new azure.core.ResourceGroup(`${prefix}-rg`, {
- location: azure.Locations.WestUS2,
-});
+const resourceGroup = new azure.core.ResourceGroup("resourceGroup");
// Create an HTTP Azure Function which will be the "backend" of our API.
// It accepts a name in the query string and returns a JSON back with the greeting and timestamp.

MODIFY
azure-ts-dynamicresource/index.ts
azure-ts-dynamicresource/index.ts
@@ -45,7 +45,6 @@ const cdnProfile = new azure.cdn.Profile("cdnProfile", {
sku: "Standard_Akamai",
});
-const cdnSuffix = pulumi.getStack().substring(0, 9);
const cdnEndpoint = new azure.cdn.Endpoint("cdnEndpoint", {
/**
* Specify a well-known name for the endpoint name,
@@ -55,7 +54,7 @@ const cdnEndpoint = new azure.cdn.Endpoint("cdnEndpoint", {
* For example, the URL for this CDN endpoint when it is created
* would be `my-cdn-endpoint.azureedge.net`.
*/
- name: `my-cdn-endpoint-${cdnSuffix}`,
+ name: "my-cdn-endpoint",
resourceGroupName: resourceGroup.name,
profileName: cdnProfile.name,
isHttpsAllowed: true,

Cleanup after PR feedback