Skip to content

Commit

Permalink
Cleanup after PR feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
stack72 committed Jul 1, 2019
1 parent b3e188c commit e831149
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 9 deletions.
2 changes: 1 addition & 1 deletion aws-ts-twitter-athena/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
7 changes: 1 addition & 6 deletions azure-ts-api-management/index.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,8 @@
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.
Expand Down
3 changes: 1 addition & 2 deletions azure-ts-dynamicresource/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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,
Expand Down

0 comments on commit e831149

Please sign in to comment.