Skip to content

updating to version 3, Deployment is failng when some files don't exst #12203

Closed Answered by takeaki-m
takeaki-m asked this question in Q&A
Discussion options

You must be logged in to vote

Finally, I have split serverless.yml file into each environment files.
In deploy process, renaming each environment files to serverless.yml

Here is one expamle.

package structure

.
├── resources
│   ├── test
│   │   └── A.yml
│   │   └── B.yml
│   └── production
│   │   └── A.yml
└── serverless
    └── production.yml
    └── staging.yml

In deploying, executing following commands

# variable stage is dynamically set to the environment name.
cp serverless/${stage}.yml serverless.yml

# refer to default serverless.yml file
sls deploy --stage ${stage}

Thank you for help in resolving the issue.

I'll be grad that my sample is helpful to the migration

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@takeaki-m
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by takeaki-m
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants