1. README.md update netcore version 2.aws-py-serverless-raw fix provisioned_concurrent_executions 3.aws-py-serverless-raw fix Pulumi.yaml
MODIFY
aws-py-serverless-raw/Pulumi.yaml
aws-py-serverless-raw/Pulumi.yaml
-name: aws-py-serverless-raw
-runtime:
- name: python
-description: A minimal Python Pulumi program
+name: serverless-raw
+runtime: python
+description: Basic example of a serverless AWS application
+template:
+ config:
+ aws:region:
+ description: The AWS region to deploy into
+ default: us-east-2
+

MODIFY
aws-py-serverless-raw/README.md
aws-py-serverless-raw/README.md
@@ -10,10 +10,16 @@ to accomplish all of the same things this higher-level package offers.
The deployed Lambda function is a simple C# application, highlighting the ability to manage existing application code
in a Pulumi application, even if your Pulumi code is written in a different language like JavaScript or Python.
-The Lambda function is a C# application using .NET Core 2.1 (a similar approach works for any other language supported by
+The Lambda function is a C# application using .NET Core 3.1 (a similar approach works for any other language supported by
AWS Lambda).
## Deploying and running the Pulumi App
+1. Install dependencies. In this example we will install them in a virtual environment named `venv`.
+ ```bash
+ $ python3 -m venv venv
+ $ source venv/bin/activate
+ $ pip install -r requirements.txt
+ ```
1. Create a new stack:
@@ -21,8 +27,6 @@ AWS Lambda).
$ pulumi stack init dev
```
-1. Restore NPM modules via `npm install` or `yarn install`.
-
1. Build the C# application.
```bash

MODIFY
aws-py-serverless-raw/__main__.py
aws-py-serverless-raw/__main__.py
@@ -91,7 +91,7 @@ if provisioned_concurrent_executions:
concurrency = aws.lambda_.ProvisionedConcurrencyConfig("concurrency",
function_name=lambda_func.name,
qualifier=lambda_func.version,
- provisioned_concurrent_executions=1
+ provisioned_concurrent_executions=provisioned_concurrent_executions,
)

ADD
aws-ts-serverless-raw/.gitignore
+/**/obj
+/**/bin
+/**/node_modules
\ No newline at end of file

MODIFY
aws-ts-serverless-raw/README.md
aws-ts-serverless-raw/README.md
@@ -10,7 +10,7 @@ to accomplish all of the same things this higher-level package offers.
The deployed Lambda function is a simple C# application, highlighting the ability to manage existing application code
in a Pulumi application, even if your Pulumi code is written in a different language like JavaScript or Python.
-The Lambda function is a C# application using .NET Core 2.1 (a similar approach works for any other language supported by
+The Lambda function is a C# application using .NET Core 3.1 (a similar approach works for any other language supported by
AWS Lambda).
## Deploying and running the Pulumi App

1. README.md update netcore version 2.aws-py-serverless-raw fix provisioned_concurrent_executions 3.aws-py-serverless-raw fix Pulumi.yaml