Skip to content

deploy command with input parameters #94

Description

@SandroZaninello

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}}

Activity

  1. d3v3lop3rDE commented on Nov 6, 2024

    @d3v3lop3rDE

    You should be able to use the args you provided

  2. SandroZaninello commented on Nov 7, 2024

    @SandroZaninello
    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 ?

  3. ryanlawson commented on Dec 18, 2024

    @ryanlawson

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions