Update webserver export; add step to serverless-raw readme
MODIFY
aws-js-webserver/index.js
aws-js-webserver/index.js
@@ -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"] },
],
});
@@ -33,4 +33,4 @@ let server = new aws.ec2.Instance("web-server-www", {
});
exports.publicIp = server.publicIp;
-exports.publicDns = server.publicDns;
\ No newline at end of file
+exports.publicHostName = server.publicDns;
\ No newline at end of file

MODIFY
aws-ts-serverless-raw/README.md
aws-ts-serverless-raw/README.md
@@ -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

Update webserver export; add step to serverless-raw readme (#40)