Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use provider.getStackName method to get stackname #16

Closed
wants to merge 3 commits into from
Closed

Use provider.getStackName method to get stackname #16

wants to merge 3 commits into from

Conversation

JakeChampion
Copy link

Fixes #15

this.serverless.service.getServiceName(),
this.serverless.getProvider('aws').getStage()
)
return this.serverless.getProvider('aws').naming.getStackName()
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've seen this same behavior, too. Out of curiosity, why not just read directly from the property (e.g. this.serverless.getProvider('aws').stackName) and declare that in the typings file?

This this value be populated if the stackName property is not set in serverless.yml? It's possible that we need to fall back to the defaulted value here?

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nm; It looks like it is fine even if stackName is not specified in serverless.yml

@egut
Copy link

egut commented Nov 27, 2018

I apparently missed somethings but it seams to be fixed. Any plan to merge this?

@viyh
Copy link

viyh commented Dec 5, 2018

+1, just hit this bug.

@JakeChampion JakeChampion deleted the patch-1 branch March 6, 2019 17:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants