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

deploy command with input parameters #94

Open
SandroZaninello opened this issue Oct 26, 2024 · 3 comments
Open

deploy command with input parameters #94

SandroZaninello opened this issue Oct 26, 2024 · 3 comments

Comments

@SandroZaninello
Copy link

Is there any possibility to specify the AWS region and Stage on "serverless deploy" command?
Simulating the command: "sls deploy -r eu-west-1 -s dev"
Something like:
with:
args: deploy --r {{github.event.input.region}} --s {{github.event.input.stage}}

@d3v3lop3rDE
Copy link

You should be able to use the args you provided

@SandroZaninello
Copy link
Author

I'm encountering this error:

1 deprecation found: run 'serverless doctor' for more details
Error:
Cannot resolve serverless.yml: Variables resolution errored with:
  - Cannot resolve variable at "provider.environment.MYPARAM": AWS profile "xyz" doesn't seem to be configured,

I also used aws-actions/configure-aws-credentials@v1 with role-to-assume.

In which way shoud I put the --aws-profile ?

@ryanlawson
Copy link

Profile can be set with an environment variable AWS_PROFILE

Doc

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

No branches or pull requests

3 participants