{"id":17167922,"url":"https://github.com/jacob-meacham/serverless-plugin-aws-resolvers","last_synced_at":"2025-07-13T16:05:39.872Z","repository":{"id":23077758,"uuid":"97662100","full_name":"jacob-meacham/serverless-plugin-aws-resolvers","owner":"jacob-meacham","description":":zap: A plugin for the serverless framework that resolves deployed AWS services to variables from ESS, RDS, EC2, dynamodb or Kinesis.","archived":false,"fork":false,"pushed_at":"2023-02-03T14:21:47.000Z","size":2932,"stargazers_count":26,"open_issues_count":11,"forks_count":8,"subscribers_count":17,"default_branch":"develop","last_synced_at":"2025-07-11T01:53:19.102Z","etag":null,"topics":["aws","aws-lambda","serverless","serverless-framework","serverless-plugin"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jacob-meacham.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null}},"created_at":"2017-07-19T02:05:10.000Z","updated_at":"2024-02-09T02:17:10.000Z","dependencies_parsed_at":"2023-02-18T07:45:55.092Z","dependency_job_id":null,"html_url":"https://github.com/jacob-meacham/serverless-plugin-aws-resolvers","commit_stats":null,"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"purl":"pkg:github/jacob-meacham/serverless-plugin-aws-resolvers","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jacob-meacham%2Fserverless-plugin-aws-resolvers","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jacob-meacham%2Fserverless-plugin-aws-resolvers/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jacob-meacham%2Fserverless-plugin-aws-resolvers/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jacob-meacham%2Fserverless-plugin-aws-resolvers/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jacob-meacham","download_url":"https://codeload.github.com/jacob-meacham/serverless-plugin-aws-resolvers/tar.gz/refs/heads/develop","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jacob-meacham%2Fserverless-plugin-aws-resolvers/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264911322,"owners_count":23682246,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["aws","aws-lambda","serverless","serverless-framework","serverless-plugin"],"created_at":"2024-10-14T23:10:28.748Z","updated_at":"2025-07-13T16:05:39.852Z","avatar_url":"https://github.com/jacob-meacham.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# serverless-plugin-aws-resolvers\n[![serverless](http://public.serverless.com/badges/v3.svg)](http://www.serverless.com)\n[![Coverage Status](https://coveralls.io/repos/github/jacob-meacham/serverless-plugin-aws-resolvers/badge.svg?branch=develop)](https://coveralls.io/github/jacob-meacham/serverless-plugin-aws-resolvers?branch=develop)\n![Build Status](https://github.com/jacob-meacham/serverless-plugin-aws-resolvers/actions/workflows/ci.yml/badge.svg)\n\nA plugin for the serverless framework that resolves deployed AWS services to variables from ESS, RDS, EC2, dynamodb or Kinesis.\n\n# Usage\n```yaml\ncustom:\n  # See https://docs.aws.amazon.com/AWSJavaScriptSDK/latest/AWS/ES.html#describeElasticsearchDomain-property\n  ess: ${aws:ess:my_cluster_name:Endpoint}\n  # See https://docs.aws.amazon.com/AWSJavaScriptSDK/latest/AWS/RDS.html#describeDBInstances-property\n  rds: ${aws:rds:my_db_name:InstanceCreateTime}\n  # See https://docs.aws.amazon.com/AWSJavaScriptSDK/latest/AWS/RDS.html#describeDBClusters-property\n  rdsaurora: ${aws:rdsaurora:my_cluster_name:Endpoint}\n  kinesis: ${aws:kinesis:my_kinesis_stream:StreamARN}\n  dynamodb: ${aws:dynamodb:my_dynamodb_table:LatestStreamArn}\n  securityGroup: ${aws:ec2:securityGroup:my_vpc_name-my_group_name:GroupId}\n  subnet: ${aws:ec2:subnet:my_subnet_name:SubnetId}\n  vpc: ${aws:ec2:vpc:my_vpc_name:VpcId}\n  ecs: ${aws:ecs:cache_cluster_name:CacheClusterId}\n  cf: ${aws:cf:stack_name`_`logical_resource_id:PhysicalResourceId}\n  apigateway: ${aws:apigateway:my_api_name:id}\n  apigatewayv2: ${aws:apigatewayv2:my_api_name:ApiId}\n```\n\nGiven 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.\n\nThis plugin also exposes a command to resolve a variable `sls resolveAwsKey --k aws:ess:my_cluster_name:Endpoint`\n\nSee our [webpage](https://jacob-meacham.github.io/serverless-plugin-aws-resolvers/) for full documentation.\n\n## Array access\n\nTo access values in arrays (for example the ElastiCache Endpoint in CacheNodes), the `variableSyntax` of serverless needs to be amended.\n\n```yaml\nprovider:\n  variableSyntax: \"\\\\${([ ~:a-zA-Z0-9._\\\\'\\\",\\\\-\\\\/\\\\(\\\\)\\\\[\\\\]]+?)}\"\n\n  environment:\n    ECS_ADDRESS: ${aws:ecs:ecs-instance:CacheNodes[0].Endpoint.Address}\n```\n\n# Configurations\n\nThis plugin has one available configuration option at the moment.\n\n```yaml\ncustom:\n  awsResolvers:\n    strict: true\n```\n\nDisabling strict mode allows values of non-existing infrastructure to be overwritten by other values. This is especially useful when the serverless configuration also contains the CloudFormation template to create this infrastructure. On the first run the value would not be available and would prevent the template from being applied.\n\nValues can be overwritten like this:\n\n```yaml\ncustom:\n  awsResolvers:\n    strict: false\n  rds: ${aws:rds:my_db_name:InstanceCreateTime, 'not created yet'}\n```\n\n# Version History\n* 2.1.0\n  - Broad dependency update\n  - Add Aurora clusters (thanks @kschusternetformic)\n* 2.0.2\n  - Dependency security update\n  - Fix deprecation warning (Thanks @dnicolson)\n* 2.0.1\n  - Correctly depend on node \u003e= 12\n* 2.0.0\n  - Large dependency upgrade, remove babel runtime dependency.\n* 1.4.0\n  - Add ability to get CF Physical Resource ID (thanks @supaggregator)\n* 1.3.3\n  - Update versions for dependabot secruity vulnerabilities\n* 1.3.2\n  - Fix security issue with lodash (thanks @rmbl)\n* 1.3.1\n  - Add support for elasticache resources (thanks @rmbl)\n* 1.3.0\n  - Add a strict mode flag and don't error on non-existing infrastructure when strict mode is not on (thanks @rmbl)\n* 1.2.1\n  - Allow object access for the variable name (thanks @rmbl)\n* 1.2.0\n  - Add support for DynamoDB stream ARN (thanks @geronimo-iia)\n* 1.1.0\n  - Add support for EC2 resources (thanks @kevgliss)\n* 1.0.0\n  - Initial release\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjacob-meacham%2Fserverless-plugin-aws-resolvers","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjacob-meacham%2Fserverless-plugin-aws-resolvers","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjacob-meacham%2Fserverless-plugin-aws-resolvers/lists"}