-
Notifications
You must be signed in to change notification settings - Fork 0
Compute WritingCode
The Scootr AWS driver uses AWS Lambda to deploy and manage the implementation of business logic for your application. Depending on the runtime you use, the handler that you will need to implement will be slightly different. However, you will recognize many similarities among the runtimes, since all handlers must adhere to the API defined by AWS Lambda.
IMPORTANT: Currently, the AWS driver only supports one runtime for an entire application. In the future, support will be added to allow for multi-language deployments.
Using Scootr, you can "connect" to resources from a compute instance by using what are called references. In the AWS driver, these references are translated into the names and unique resource identifiers required by the various APIs you will be using to access things such as storage and internal event brokers. In your code, you will be able to access these unique identifiers in your runtime environment.
For example, if I have a reference to a DynamoDB storage instance named MyStorageRef in my Scootr configuration, then I can access the name of the table created by the driver using the MyStorageRef environment variable. This concept can be applied to all other resources you will have access to via your references in you Scootr application. For runtime-specific examples, see the documentation linked below.
Here are some links to additional documentation about how to write your handler code for AWS depending on the runtime you are using: