Aws-sam-cli: Support for --parameter-values in 0.3.0

Created on 2 Jun 2018  路  5Comments  路  Source: aws/aws-sam-cli

I read issue #400 and it seems that SAM local no longer supports the --parameter-values CloudFormation parameter now. Just want to make sure this is intentional and that the use of --env-vars is the preferred replacement when running locally?

I have not tested if actions like deploy support --parameter-values still. Just wondering what the general direction is with regard to these configs. Thanks in advance!

typquestion

Most helpful comment

@onelaview Soon! We have support for --parameter-overrides merged into develop (#657). This adds support for SAM CLI to resolve Refs of Parameters and pick up default values of those Parameters. It will be available in the next release. We will be closing #572 once this is available. Stay tuned! :)

All 5 comments

yes, --env-vars is the recommended solution for sam local suite of commands. But for deploy, --parameter-values is still available and won't be deprecated.

Does this unblock you?

Does this unblock you?

Thank you it does. That distinct will help me upgrade to v0.3.0 once this https://github.com/awslabs/aws-sam-cli/issues/457 is resolved. Thanks again! Closing this issue now too.

yes, --env-vars is the recommended solution for sam local suite of commands.

Sadly that Lambda in AWS China (cn-north-1, for example) still doesn't support environment variables yet so --env-vars is not an applicable solution here. Please re-consider adding support for --parameter-values or --parameter-overrides argument to be able to pass a parameter to CloudFormation file for sam local invoke command.

@onelaview Soon! We have support for --parameter-overrides merged into develop (#657). This adds support for SAM CLI to resolve Refs of Parameters and pick up default values of those Parameters. It will be available in the next release. We will be closing #572 once this is available. Stay tuned! :)

@jfuss Wowww! my wishing comes just true in minutes! No more sad. Thanks everyone!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

joekiller picture joekiller  路  4Comments

dschu-lab picture dschu-lab  路  3Comments

Caian picture Caian  路  3Comments

rhlsthrm picture rhlsthrm  路  4Comments

zhangzhx picture zhangzhx  路  3Comments