You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm filing this a DX bug, because SAR should really cover all AWS::Serverless::* resource types and properties at launch (or shortly thereafter) to avoid future users wasting hours to convert their apps to the fancy and widely advertised new AWS::Serverless::Connector, only to ultimately hit this blocker that requires rolling back all those changes 😉
Steps to reproduce
Create a new SAM app with sam init.
Replace the code with an example from AWS::Serverless::Connector, e.g. "have an Amazon SNS topic write to a Lambda function, which then writes to an Amazon DynamoDB table"
Use sam publish to push the SAM app to the Serverless Application Repository and observe it fails.
Observed result
Using sam publish fails with the following error message:
❯ sam publish
Publish Failed
Error: The template contains unsupported resource types. [AWS::Serverless::Connector]
Please follow the instructions in https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/serverless-sam-template-publishing-applications.html
Expected result
Using sam publish succeeds and makes the SAM app available in the Serverless Application Repository.
Additional environment details
OS: N/A
If using the SAM CLI, sam --version: SAM CLI, version 1.74.0
This discussion was converted from issue #2952 on February 27, 2023 07:04.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Description
Despite its name suggesting otherwise, the
AWS::Serverless::Connector
is not yet contained within the (at times surprisingly limited) List of Supported AWS Resources for the AWS Serverless Application Repository.AWS::Serverless::*
resource types and properties at launch (or shortly thereafter) to avoid future users wasting hours to convert their apps to the fancy and widely advertised newAWS::Serverless::Connector
, only to ultimately hit this blocker that requires rolling back all those changes 😉Steps to reproduce
sam init
.AWS::Serverless::Connector
, e.g. "have an Amazon SNS topic write to a Lambda function, which then writes to an Amazon DynamoDB table"AWS::ServerlessRepo::Application
metadatasam validate --lint
and observe it succeedssam publish
to push the SAM app to the Serverless Application Repository and observe it fails.Observed result
Using
sam publish
fails with the following error message:Expected result
Using
sam publish
succeeds and makes the SAM app available in the Serverless Application Repository.Additional environment details
sam --version
: SAM CLI, version 1.74.0eu-west-1
Beta Was this translation helpful? Give feedback.
All reactions