Skip to content

Latest commit

 

History

History
46 lines (32 loc) · 1006 Bytes

serverless.md

File metadata and controls

46 lines (32 loc) · 1006 Bytes

serverless

Resource

Prepare IAM for lambda

Not ideal but quick fix

  • AmazonS3FullAccess
  • AWSLambdaFullAccess
  • CloudFormation
  • Lambda Iam, all roles

Creating a service

# install serverless
npm install -g serverless

# create a project
sls create --template aws-csharp --path GroovyFood  

# build the project
./build.sh

# deploy
sls deploy

Access Environment Variables

static Func<string, string> Get = (key) => Environment.GetEnvironmentVariable(key);

public static string ApiBaseUri => "https://api.gdax.com";
public static string ApiKey => Get("api_key");
public static string ApiSecret => Get("api_secret");
public static string Passphrase => Get("passphrase");