Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Deploy only works if config file is yml

davi.carvalho August 5, 2021

On some serverless framework templates, the configuration file is a "serverless.ts" file, but when I run with this pipe, it throws an error saying "✖ serverless.yml doesn't exist."

2 answers

1 accepted

1 vote
Answer accepted
Halyna Berezovska
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
August 16, 2021

@davi.carvalho have you tried to pass CONFIG variable precisely, so that the pipe does not put the default value?

script:
- chmod 005 my-script.sh
- pipe: atlassian/serverless-deploy:1.0.0
variables:
AWS_ACCESS_KEY_ID: $AWS_ACCESS_KEY_ID
AWS_SECRET_ACCESS_KEY: $AWS_SECRET_ACCESS_KEY
CONFIG: 'serverless.ts'

 

The thing is that the most often used is serverless.yml config file and we cannot change it, because for most users it works like this.

However, for your custom solution you just pass config file like above.

Looking forward to seeing your feedback, we are happy to communicate to choose the best solution!

If you're happy with such solution, we will update the documentation

Regards, Galyna

davi.carvalho August 16, 2021

Thanks! Yeah, this should work fine for us.

Will change and I'll give you a response

Like Halyna Berezovska likes this
1 vote
Oleksandr Kyrdan
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
August 5, 2021

Hi @davi.carvalho

Thank you for your question!

We'll investigate this feature and notify you!

 

Cheers,
Oleksandr Kyrdan

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events