Comments (1)
no, you should set the stage variables in AWS directly. I don't like keeping stage variables inside the project folder structure because they often contain secret access keys.
You can set stage variables from the AWS web console (see Set Stage Variables Using the Amazon API Gateway Console), or using the AWS CLI, like this:
aws apigateway create-deployment --rest-api-id API_ID \
--stage-name production --variables accessKey=5465876375e273re
See the DynamoDB CRUD example project for an example of how that's used.
it is good to use the set-version
claudia command to create a completely new stage before you set the vars for the first time, as it will save you manual access configuration.
from claudia-api-builder.
Related Issues (20)
- One API Gateway for different lambda. HOT 1
- JSON parse throws error HOT 4
- Premature Exit while using Async.js with no results HOT 2
- Log path to CloudWatch HOT 5
- Add 'Access-Control-Allow-Origin' header to Authorizer's error responses HOT 2
- Question: Does it build to new AWS node 8.10.0 runtime? HOT 1
- Handling dynamic path variables when running locally HOT 1
- [Improvement] Use Method-Aware Status Codes HOT 1
- Type defintions for IDEs HOT 1
- ApiBuilder.ApiResponse is not a constructor error @ claudia-api-builder v3.0.x HOT 1
- Unable to use ApiResponse to return readable errors when serving binary content HOT 3
- CORS with Cognito Authorizer HOT 2
- Environment variable aka stage dev/prod HOT 1
- Add options to `ApiResponse` HOT 1
- A sibling ({uuid}) of this resource already has a variable path part -- only one is allowed HOT 1
- Wrong document in cors.md HOT 1
- Authorization with Cognito User Pools and Axios client-side HOT 1
- Default CORs settings (allow-origin: * & allow-credentials: true) Breaks Ajax
- Lambda Node 12 support
- Throwing classes derived from ApiBuilder.ApiResponse is not working correctly
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from claudia-api-builder.