Skip to content

Commit

Permalink
Update webserver export; add step to serverless-raw readme (#40)
Browse files Browse the repository at this point in the history
  • Loading branch information
lindydonna committed Apr 19, 2018
1 parent 5f8d91d commit 267c4b1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 2 additions & 2 deletions aws-js-webserver/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ let ami = "ami-7172b611" // AMI for Amazon Linux in us-west-2 (Oregon)

// create a new security group for port 80
let group = new aws.ec2.SecurityGroup("web-secgrp", {
description: "Enable HTTP access",
ingress: [
{ protocol: "tcp", fromPort: 22, toPort: 22, cidrBlocks: ["0.0.0.0/0"] },
{ protocol: "tcp", fromPort: 80, toPort: 80, cidrBlocks: ["0.0.0.0/0"] },
],
});
Expand All @@ -33,4 +33,4 @@ let server = new aws.ec2.Instance("web-server-www", {
});

exports.publicIp = server.publicIp;
exports.publicDns = server.publicDns;
exports.publicHostName = server.publicDns;
3 changes: 3 additions & 0 deletions aws-ts-serverless-raw/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ $ pulumi config set aws:region us-east-2
# Install dependencies
$ npm install

# Compile the TypeScript program
npm run build

# Build the C# app
$ cd ./app
$ dotnet publish
Expand Down

0 comments on commit 267c4b1

Please sign in to comment.