I’m trying to deploy a serverless component from BitBucket using pipe: Bitbucket
I’ve already configured the SERVERLESS_ACCESS_KEY environment variable but I’ve gotten this error
INFO: Deploying your serverless application...
DEBUG: serverless deploy -c serverless.yml --stage dev --region us-east-2 --force --org letsbank --app config --debug
Serverless Error ----------------------------------------
ServerlessError: Invalid service configuration: "provider.name" property is missing
at module.exports (/usr/lib/node_modules/serverless/node_modules/type/lib/resolve-exception.js:12:14)
at module.exports (/usr/lib/node_modules/serverless/node_modules/type/string/ensure.js:12:9)
at module.exports (/usr/lib/node_modules/serverless/lib/configuration/resolve-provider-name.js:10:12)
at /usr/lib/node_modules/serverless/scripts/serverless.js:180:28
at /usr/lib/node_modules/serverless/scripts/serverless.js:351:11
Here is my Serverless.yml
org: letsbank
app: config
name: bankslip-core
component: aws-cloudformation
inputs:
region: ${env:AWS_REGION}
name: ${self:stage}-bankslip-core-appconfig
template:
Resources:
Application:
Type: AWS::AppConfig::Application
Properties:
Name: "bankslip-core"
Environment:
Type: AWS::AppConfig::Environment
Properties:
ApplicationId: !Ref Application
Name: "${self:stage}"
Description: "AppConfig enviroment"
ConfigurationProfile:
Type: AWS::AppConfig::ConfigurationProfile
Properties:
ApplicationId: !Ref Application
Name: "BankslipCoreConfigurationProfile"
LocationUri: "hosted"
Version:
Type: AWS::AppConfig::HostedConfigurationVersion
Properties:
ApplicationId: !Ref Application
ConfigurationProfileId: !Ref ConfigurationProfile
Description: 'Configuracoes de ambiente para boleto core.'
ContentType: 'application/json'
Content: |
{
"register": {
"response": {
"retry": {
"threshold": 5
}
}
},
"payee": {
"response": {
"retry": {
"threshold": 5
}
}
},
"checkout": {
"response": {
"retry": {
"threshold": 5
}
}
}
}
DeploymentStrategy:
Type: AWS::AppConfig::DeploymentStrategy
Properties:
Name: "BankslipDeploymentStrategy"
Description: "Bankslip core deployment strategy."
DeploymentDurationInMinutes: 3
FinalBakeTimeInMinutes: 4
GrowthFactor: 10
GrowthType: LINEAR
ReplicateTo: NONE
Deployment:
Type: AWS::AppConfig::Deployment
Properties:
ApplicationId: !Ref Application
EnvironmentId: !Ref Environment
DeploymentStrategyId: !Ref DeploymentStrategy
ConfigurationProfileId: !Ref ConfigurationProfile
ConfigurationVersion: !Ref Version
Description: 'Bankslip Deployment'