Amplify-cli: Disable a Lambda in specific environment?

Created on 20 Jul 2020  路  2Comments  路  Source: aws-amplify/amplify-cli

I've created some utility Lambdas that I only need for a specific environment.

Is there a way to prevent that specific Lambda from being scanned upon in amplify status for a specific amplify env ?
I don't want it pushed in prod for example.

pending-response platform question

All 2 comments

When you run amplify env checkout

  1. when you checkout into the particular env, the status for that particular function will be "Delete", run amplify env pull --restore to change it to "No Change"
  2. when you checkout from the particular env to another env, the status for that particular function will be "Create", run amplify env pull --restore to change it to "No Change"

The Amplify CLI standard is to follow a git workflow. Docs here: https://docs.amplify.aws/cli/teams/overview
Should you have more questions on this please reach out in our discord community here: AWS Amplify
Should you have any issues related to this please comment below.

Was this page helpful?
0 / 5 - 0 ratings