aws-extensions-for-dotnet-cli icon indicating copy to clipboard operation
aws-extensions-for-dotnet-cli copied to clipboard

Template Substitions are not supported for YAML

Open karadjov opened this issue 7 years ago • 4 comments

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.

karadjov avatar Feb 02 '18 14:02 karadjov

Yes, I haven't implemented YAML substitution yet. Its on my list of things to do, a pull request is also welcome :)

normj avatar Feb 03 '18 00:02 normj

Any news on that? I can try to help with a PR.

fabiob avatar Sep 05 '20 00:09 fabiob

@fabiob Thanks for your reply. Please feel free to contribute with the PR which could be reviewed by development team.

ashishdhingra avatar Feb 17 '21 21:02 ashishdhingra

Our current deployment script to work around this is to:

  1. run dotnet lambda package-ci to handle the compilation/uploads
  2. run aws cloudformation package to handle AWS::Include of local resources
  3. actually deploy via Stacker (aws cloudformation deploy would 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

hauntingEcho avatar May 13 '22 17:05 hauntingEcho