aws-extensions-for-dotnet-cli
aws-extensions-for-dotnet-cli copied to clipboard
Template Substitions are not supported for YAML
Currently Template Substitions are supported only for JSON. https://github.com/aws/aws-lambda-dotnet/blob/911103991bb6c8b22216dc419f9cfb6986eaa764/Libraries/src/Amazon.Lambda.Tools/Utilities.cs#L450 This means we cannot use YAML if we want to use lambda deploy-serverless or lambda package-ci.
Yes, I haven't implemented YAML substitution yet. Its on my list of things to do, a pull request is also welcome :)
Any news on that? I can try to help with a PR.
@fabiob Thanks for your reply. Please feel free to contribute with the PR which could be reviewed by development team.
Our current deployment script to work around this is to:
- run
dotnet lambda package-cito handle the compilation/uploads - run
aws cloudformation packageto handleAWS::Includeof local resources - actually deploy via Stacker (
aws cloudformation deploywould probably work if you're deploying a single template)
edit: I may have misunderstood this issue as being about AWS::Include template substitutions rather than the --template-substitutions CLI argument