Skip to content
This repository was archived by the owner on Mar 15, 2026. It is now read-only.
This repository was archived by the owner on Mar 15, 2026. It is now read-only.

Provide option for multiple environments #67

Open

Description

@prasannaboga

I would like to deploy lambda function in multiple environments, like development, staging, and production.

Is there is a way to setup config.yaml for different working environments?

Activity

  1. kilna-magento commented on Sep 7, 2017

    @kilna-magento

    Proposed solution: Make the yaml file from which the configuration is read an optional command line parameter. If lambda is called with -c production.yaml it will use that file instead of config.yaml. I'd find this feature useful too.

  2. jmehnle commented on Jan 26, 2018

    @jmehnle
    Contributor

    Alternatively add a --profile parameter like the one supported by the aws CLI utility that controls which AWS credentials to read from ~/.aws/credentials (and, by extension, which AWS account to connect to). Additional profile-specific settings could be configured under a profiles dict in the config file, e.g., profiles.prod.subnet_ids, etc. This would be more consistent with existing aws workflows.

  3. jmehnle commented on Feb 2, 2018

    @jmehnle
    Contributor

    I've added a --profile option in #93 that you can use to switch between different environments, assuming you have configured those in your .aws/{config,credentials} files.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions