https://github.com/vtcaregorodtcev/config_server_example
Example of config server with AWS API Gateway
https://github.com/vtcaregorodtcev/config_server_example
api-gateway aws aws-lambda config-server
Last synced: 2 months ago
JSON representation
Example of config server with AWS API Gateway
- Host: GitHub
- URL: https://github.com/vtcaregorodtcev/config_server_example
- Owner: vtcaregorodtcev
- License: mit
- Created: 2022-08-15T12:41:25.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2022-08-15T12:41:49.000Z (almost 4 years ago)
- Last Synced: 2025-03-20T19:34:58.490Z (over 1 year ago)
- Topics: api-gateway, aws, aws-lambda, config-server
- Language: TypeScript
- Homepage:
- Size: 96.7 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# API Gateway Lambda Template
## How to use?
You need an AWS account to have access to [AWS console](https://console.aws.amazon.com/iam/home#/security_credentials).
1. Click `"Access keys (access key ID and secret access key)"` tab and create Id and Key
2. Create or update `~/.aws/config` and `~/.aws/credentials` on your machine to setup profile with secrets which you got on the first step.
```bash
# ~/.aws/config
[rest-dev] # or rest-prod, configured in sls/profiles, applied from serverless.yml/stage
region = us-west-1 # or whatever you prefer
output = json
```
```bash
# ~/.aws/credentials
[rest-dev] # or rest-prod, configured in sls/profiles, applied from serverless.yml/stage
aws_access_key_id=YOUR_ID
aws_secret_access_key=YOUR_KEY
```
3. Then deploy.
```bash
pnpm run deploy
```
4. After deploy you can check your [api services](https://console.aws.amazon.com/apigateway/main/apis) under your AWS account and test endpoints.
5. If you want to use preconfigured profiles or other regions you can extend above command.
```bash
PROFILE=local REGION=us-west-2 pnpm run deploy
```