We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 6238e9e + f5513e3 commit 1095eadCopy full SHA for 1095ead
index.js
@@ -26,6 +26,15 @@ class AwsAlias {
26
this._options = options || {};
27
this._provider = this._serverless.getProvider('aws');
28
29
+ /**
30
+ * Set preliminary stage and alias. This is needed to enable the injection
31
+ * of the stage into the system variables. The values are overwritten by
32
+ * validate with their actually evaluated and substituted values.
33
+ */
34
+ this._stage = this._provider.getStage();
35
+ this._alias = this._options.alias || this._stage;
36
+ this._serverless.service.provider.alias = this._alias;
37
+
38
/**
39
* Load stack helpers from Serverless installation.
40
*/
0 commit comments