diff --git a/aws-js-webserver/index.js b/aws-js-webserver/index.js index 4b4606327..fcbba45f6 100644 --- a/aws-js-webserver/index.js +++ b/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 diff --git a/aws-ts-serverless-raw/README.md b/aws-ts-serverless-raw/README.md index 4a66920a6..8de03b8c2 100644 --- a/aws-ts-serverless-raw/README.md +++ b/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