aws / aws/aws-toolkit-visual-studio

Publish to AWS Lambda throws error - same template uploaded directly succeeds

Open
#189 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
No language data
Stars
135
Forks
37
PR merge metrics
No merged PRs in 30d

Description

**Describe the bug**
I have a fairly complex CFT that includes a section to create an Events Rule. When publishing from VS 2019, the Stack events displays an error "Input must be of type String" for the Event Target Input property. This property is JSON with Sub and FindInMap functions

## Reproduction Steps
In Solution Explorer, right click on project "Publish to AWS Lambda"

**Expected behavior**
Stack deployed from VS as it is from AWS console

**Screenshots**

10/26/2021 5:47:12 PMAWS::Events::RuleDABatchProcessorAckDownloadDailyTriggerDABatchProcessor-AckDownload-Daily-dev Value of property Input must be of type String

**Computer (please complete the following information):**
- Windows Version: Version 10.0.19043 Build 19043

- Visual Studio Version: Version 16.11.5

- AWS Toolkit for Visual Studio Version: not sure, recently installed the latest

**Additional context**
The problematic line is 404

Contributor guide

Open the contributing guide

Research direction

Start by opening template.zip and inspecting the problematic line 404, then reproduce the deployment by right-clicking the project in Solution Explorer. Compare the Visual Studio publish result with a direct AWS console upload, focusing on the AWS::Events::Rule target Input value. Done means the template deploys from Visual Studio without the type error.

Written by the indexing model from the issue text.

Assessment

Tech stack
aws
Domain
cloud, devtools
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.