You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
From now on, setting a provider is done by specifying config.providerPackage, rather than the old config.provider.
In this new way, instead of importing the Provider object and assigning it in the config.provider field, you simply specify the name of the package as a string:
// Old way – Now deprecatedimport*asAWSfrom'@boostercloud/framework-provider-aws'Booster.configure(environment.name,(config: BoosterConfig)=>{config.appName='my-cool-app'config.provider=AWSProvider()})// New wayBooster.configure(environment.name,(config: BoosterConfig)=>{config.appName='my-cool-app'config.providerPackage='@boostercloud/framework-provider-aws'// New optional field for specifying rocketsconfig.rockets=[/* your rockets here */]})
With this addition, now Booster provider libraries are loaded on runtime when they are needed, meaning that if you want to deploy the same application to different providers (e.g. AWS, and Azure) you won't get any runtime errors complaining that the SDK for the cloud provider is missing.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
From now on, setting a provider is done by specifying
config.providerPackage
, rather than the oldconfig.provider
.In this new way, instead of
import
ing the Provider object and assigning it in theconfig.provider
field, you simply specify the name of the package as a string:With this addition, now Booster provider libraries are loaded on runtime when they are needed, meaning that if you want to deploy the same application to different providers (e.g. AWS, and Azure) you won't get any runtime errors complaining that the SDK for the cloud provider is missing.
This discussion was created from the release Local provider enabling and lazy provider loading.
Beta Was this translation helpful? Give feedback.
All reactions