https://github.com/toricls/cobolambda
Serverless COBOL on AWS Lambda.
https://github.com/toricls/cobolambda
aws-lambda cobol serverless
Last synced: 12 months ago
JSON representation
Serverless COBOL on AWS Lambda.
- Host: GitHub
- URL: https://github.com/toricls/cobolambda
- Owner: toricls
- License: mit
- Created: 2016-12-20T06:27:57.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2018-01-16T07:13:47.000Z (about 8 years ago)
- Last Synced: 2025-03-24T05:35:21.318Z (about 1 year ago)
- Topics: aws-lambda, cobol, serverless
- Language: JavaScript
- Size: 2.93 KB
- Stars: 55
- Watchers: 3
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# cobolambda
Serverless COBOL on AWS Lambda.
## Prerequisites
- AWS Lambda
- Amazon API Gateway
- AWS CloudFormation
- Node.js + npm
## Overview

## Usage
Don't.
## Configure & Deploy
We need both npm and [aws-cli](https://aws.amazon.com/cli/) to configure and deploy.
### Create a S3 bucket to store an app package
```
$ export COBOLAMBDA_S3BUCKET=
$ aws s3api create-bucket --bucket $COBOLAMBDA_S3BUCKET
```
### Install dependencies
```
$ npm install
```
### Package
```
$ aws cloudformation package --template-file app_spec_template.yml --output-template-file app_spec.yml --s3-bucket $COBOLAMBDA_S3BUCKET
```
### Deploy
```
$ aws cloudformation deploy --template-file app_spec.yml --stack-name cobolambda --capabilities CAPABILITY_IAM
```
## Run
```
$ export REST_API_ID=$( aws cloudformation describe-stack-resource --stack-name cobolambda --logical-resource-id ServerlessRestApi --query "StackResourceDetail.PhysicalResourceId" --output text )
$ curl https://$REST_API_ID.execute-api..amazonaws.com/Prod/cobolambda
```
## Writing & Compiling COBOL on Docker container
```
$ docker run -it --rm -v $(pwd):/src toricls/gnucobol:latest bash
root@xxxxxxxxxxxx:/src# cobc --help
```
## Licence
[MIT](LICENCE)
## Author
[toricls](https://github.com/toricls)