Open oullah opened 2 years ago
I'm having the same issue, I don't know whether it's me doing something wrong or the plugin doesn't work with new versions anymore :?
plugins:
- serverless-offline-ssm # This one needs to be the first of the plugins
- serverless-webpack
- serverless-layers
- serverless-domain-manager
- serverless-dynamodb-local
custom:
serverless-offline-ssm:
stages:
- local
ssm:
'provider.iamRoleStatements[0].Resource': ''
'provider.vpc.securityGroupIds.0': ''
'provider.vpc.subnetIds[0]': ''
'custom.serverless-layers.layersDeploymentBucket': ''
Then the command I use is:
serverless offline start --host localhost --allowCache --stage=local
I can confirm this isn't working for me either.
"serverless-offline": "^8.3.1",
"serverless-offline-ssm": "^5.2.0",
Not working for me either.
"serverless": "^3.19.0",
"serverless-dynamodb-local": "^0.2.40",
"serverless-offline": "^8.8.0",
"serverless-offline-ssm": "^6.2.0",
"serverless-plugin-typescript": "^2.1.2",
Getting this error:
Cannot resolve serverless.yml: Variables resolution errored with:
- Cannot resolve variable at "provider.environment.MY_VAR_NAME": Source "ssm" returned not supported result: "undefined",
Hello, have any of you resolved the issue yet? I'm still with this problem
By adding console.log in the node_modules, it seems that the key passed in getValue
https://github.com/janders223/serverless-offline-ssm/blob/33a5825a41eb872c36353ac1306fc905a2946eb0/src/resolver.ts#L38 still has the sufix ~true
, adding it in the values made it work
I have the 5.2.0 of
serverless-offline-ssm
installed. I have defined it as the first plugin:However, it is still using the AWS cloud SSM no matter what I do. I've tried it in the yml file as well as the .env file. I've tried running
sls offline --stage offline
as well as changing the default stage in the yml file.This is the error. If I add the parameter to AWS SSM it uses that parameter, and not the local one.