Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/peak-ai/serverless-cloudmap-component
Serverless Cloudmap Component
https://github.com/peak-ai/serverless-cloudmap-component
aws cloudmap lambda serverless service-discovery
Last synced: 2 months ago
JSON representation
Serverless Cloudmap Component
- Host: GitHub
- URL: https://github.com/peak-ai/serverless-cloudmap-component
- Owner: peak-ai
- Created: 2019-08-21T17:06:56.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2022-12-04T08:23:14.000Z (about 2 years ago)
- Last Synced: 2023-03-02T23:22:15.051Z (almost 2 years ago)
- Topics: aws, cloudmap, lambda, serverless, service-discovery
- Language: JavaScript
- Homepage:
- Size: 194 KB
- Stars: 3
- Watchers: 2
- Forks: 1
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Serverless Cloudmap Component
# MOVED - Please use https://github.com/serverless-components/cloudmap
The purpose of this library is to register your components within Cloudmap. You can define a namespace, service and include 'instances' within the Cloudmap component. If they don't exist, they'll be created.
You can register any other component as long as the output contains an ARN.
```yaml
name: serverless-cloudmap-componentcreateUser:
component: '@serverless/function'
code: ./src
handler: index.createUserfetchUser:
component: '@serverless/function'
code: ./src
handler: index.fetchUseruserTable:
component: "@serverless/aws-dynamodb"
inputs:
attributeDefinitions:
- AttributeName: id
AttributeType: S
keySchema:
- AttributeName: id
KeyType: HASH
region: eu-west-1UserService:
component: ../
inputs:
service: 'user-service'
namespace: 'test'
resources:
create:
resource: ${createUser}
fetch:
resource: ${fetchUser}
config:
some: "other metadata"
userTable:
resource: ${userTable}
config:
type: "table"
```