Serverless Plugin Aws Resolvers

homepage icon https://github.com/DopplerLabs/serverless-plugin-aws-resolvers

Tracked

NPM Downloads Last Month
34
Issues
0
Stars
2
Forks
1
Watchers
2

Repo README Contents:

serverless-plugin-aws-resolvers

serverless Coverage Status Build Status

A plugin for the serverless framework that resolves deployed AWS services to variables from ESS, RDS, EC2, or Kinesis.

Usage

custom:
  # See https://docs.aws.amazon.com/AWSJavaScriptSDK/latest/AWS/ES.html#describeElasticsearchDomain-property
  ess: ${aws:ess:my_cluster_name:Endpoint}
  # See https://docs.aws.amazon.com/AWSJavaScriptSDK/latest/AWS/RDS.html#describeDBInstances-property
  rds: ${aws:rds:my_db_name:InstanceCreateTime}
  kinesis: ${aws:kinesis:my_kinesis_stream:StreamARN}
  securityGroup: ${aws:ec2:securityGroup:my_vpc_name-my_group_name:GroupId}
  subnet: ${aws:ec2:subnet:my_subnet_name:SubnetId}
  vpc: ${aws:ec2:vpc:my_vpc_name:VpcId}

Given a service, a key, and a property, this plugin will resolve the variable directly from AWS. This uses the IAM role of the executor of the serverless binary.

This plugin also exposes a command to resolve a variable sls resolveAwsKey --k aws:ess:my_cluster_name:Endpoint

See our webpage for full documentation.

Version History