Comments (5)
Hi @Nikola-Milovic π
SLIC Starter assumes that you want to use a domain, even for the backend (api.example.com
) so this isn't going to work out of the box. If you really want to avoid using the domainConfig, a lot of other parts would have to be changed, so it's as well to use one, and you have a nice, human-readable URL for the API endpoints.
If you want to exclude the frontend, you can remove it the frontend
folder entirely, then remove frontend
from cicd/modules.ts
so it doesn't get deployed as part of the CI/CD.
from slic-starter.
I'll stick with a domain thenπ
Thank you very much!
from slic-starter.
@eoinsha Sorry for the ping, but should this be a normal occurrence? Took the exact setup from the checklist service. Also trying on a fresh clone of Slic-Starter and getting same errors and warnings, I am I missing a step? I am trying to do local development only.
Ran this command SLIC_STAGE=local sls offline start --migrate true
from my custom service directory
Serverless: Deprecation warning: Support for Node.js versions below v12 will be dropped with next major release. Please upgrade at https://nodejs.org/en/
More Info: https://www.serverless.com/framework/docs/deprecations/#OUTDATED_NODEJS
Serverless: Deprecation warning: Variables resolver reports following resolution errors:
- Cannot resolve variable at "provider.region": Value not found at "env" source,
- Cannot resolve variable at "custom.nsDomain": Value not found at "env" source,
- Cannot resolve variable at "custom.domainPrefixes": Cannot load file from outside of a project directory (configure "projectDir" to extend project boundary),
- Cannot resolve variable at "resources.Resources": Cannot parse "sls-resources.yml.js": Approached a JS function resolver, confirm it's updated to work with a new parser by setting "variablesResolutionMode: 20210326" in service config. Falling back to old resolver
From a next major this will be communicated with a thrown error.
Set "variablesResolutionMode: 20210326" in your service config, to adapt to new behavior now
More Info: https://www.serverless.com/framework/docs/deprecations/#NEW_VARIABLES_RESOLVER
Serverless: Running "serverless" installed locally (in service node_modules)
Serverless: Deprecation warning: CLI options definitions were upgraded with "type" property (which could be one of "string", "boolean", "multiple"). Below listed plugins do not predefine type for introduced options:
- ServerlessWebpack for "out"
- ServerlessDynamodbLocal for "online", "port", "cors", "inMemory", "dbPath", "sharedDb", "delayTransientStatuses", "optimizeDbBeforeStartup", "migrate", "seed", "convertEmptyValues", "localPath"
- ServerlessOffline for "apiKey", "corsAllowHeaders", "corsAllowOrigin", "corsDisallowCredentials", "corsExposedHeaders", "disableCookieValidation", "enforceSecureCookies", "hideStackTraces", "host", "httpPort", "httpsProtocol", "lambdaPort", "noPrependStageInUrl", "noAuth", "ignoreJWTSignature", "noTimeout", "prefix", "printOutput", "resourceRoutes", "useChildProcesses", "useWorkerThreads", "websocketPort", "webSocketHardTimeout", "webSocketIdleTimeout", "useDocker", "layersDir", "dockerReadOnly", "functionCleanupIdleTimeSeconds", "allowCache"
- Prune for "number", "stage", "region", "function", "layer", "includeLayers", "dryRun"
Please report this issue in plugin issue tracker.
Starting with next major release, this will be communicated with a thrown error.
More Info: https://www.serverless.com/framework/docs/deprecations/#CLI_OPTIONS_SCHEMA
Serverless: Deprecation warning: Detected unrecognized CLI options: "--migrate".
Starting with the next major, Serverless Framework will report them with a thrown error
More Info: https://www.serverless.com/framework/docs/deprecations/#UNSUPPORTED_CLI_OPTIONS
Serverless: Deprecation warning: Unresolved variable references will be communicated with a thrown error, starting from next major
More Info: https://www.serverless.com/framework/docs/deprecations/#VARIABLES_ERROR_ON_UNRESOLVED
Serverless Warning --------------------------------------
A valid environment variable to satisfy the declaration 'env:TARGET_REGION' could not be found.
Serverless Warning --------------------------------------
A valid environment variable to satisfy the declaration 'env:SLIC_NS_DOMAIN' could not be found.
Serverless Warning --------------------------------------
A valid service attribute to satisfy the declaration 'self:provider.region' could not be found.
Serverless Warning --------------------------------------
A valid service attribute to satisfy the declaration 'self:provider.region' could not be found.
Serverless Error ----------------------------------------
Trying to populate non string value into a string for variable ${self:provider.region}. Please make sure the value of the property is a string.
Get Support --------------------------------------------
Docs: docs.serverless.com
Bugs: github.com/serverless/serverless/issues
Issues: forum.serverless.com
Your Environment Information ---------------------------
Operating System: linux
Node Version: 10.24.1
Framework Version: 2.30.3 (local)
Plugin Version: 4.5.1
SDK Version: 4.2.0
Components Version: 3.7.5
```
from slic-starter.
Ping, if anyone can pinch in, it's probably a stupid mistake on my part.
from slic-starter.
Hi @Nikola-Milovic. Try setting TARGET_REGION=eu-west-1 (or any other region) when running the command.
from slic-starter.
Related Issues (20)
- How is deployment order taken care of if not specified explicitly in modules array? HOT 2
- what is fuge.yml file for? HOT 1
- How to handle MFA code for deployment of services HOT 3
- How is idem-potency being handled here?
- How do we add a co-relationId to our the logger to trace the request properly HOT 2
- How do we create a docs site?
- Reporting a vulnerability
- Add dependency security audit stages to build/deployment pipeline HOT 2
- Integrate third party security tooling for IAM policy audit
- CORS Developer Resources - Include some docs? HOT 1
- Use AWS_IAM for internal APIs
- Consider CloudMap for service discovery
- Support single account deployment
- Support deployment without domains
- Add password reset / force password change HOT 1
- Apply sensible API Gateway rate limiting protections
- Implement build change detection HOT 1
- Adopt least-privilege IAM for Lambdas HOT 1
- Batch logs HOT 1
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 slic-starter.