Comments (3)
I am closing this issue in favor of tracking the problems thru #22 and #20
from serverless-application-model.
Update: I got a bit confused but now it seems clear that this issue is specific to how Transform processes referenced StageName
for AWS::Serverless::Api
rather than being a generic issue with processing referenced variables. For example, the following template was adopted from the HelloWorld example and appears to work correctly:
AWSTemplateFormatVersion : '2010-09-09'
Transform: AWS::Serverless-2016-10-31
Parameters:
APIStage:
Default: dev
Description: Name of the API stage to use for deployment
Type: String
AllowedPattern: '[A-Za-z0-9-]*'
Resources:
HelloWorldFunction:
Type: AWS::Serverless::Function
Properties:
Handler: index.handler
Runtime: nodejs4.3
Environment:
Variables:
APIStage: !Ref APIStage
from serverless-application-model.
See #22. We don't support !Ref on the StageName parameter yet.
from serverless-application-model.
Related Issues (20)
- Error: The template contains unsupported resource types. [AWS::Lambda::Url] HOT 3
- AWS::EC2::SecurityGroup - SecurityGroupIngress (and Egress) display errors in VSCode when using !Select and !FindInMap for CidrIp and VpcId HOT 2
- Cannot publish app with SSMParameterWithSlashPrefixReadPolicy policy HOT 1
- AutoPublishAlias not updating version when using FindInMap function in CodeUri.Key HOT 4
- GraphQL visibility private HOT 5
- Bug: AWS SAM tag value on AWS::Serverless::Function empty when value is False HOT 4
- Feature Request: Add SQS Redrive option to SNS event HOT 3
- Set Visibility timeout of the SQS with reference to the timeout of the function HOT 1
- `AWS::Serverless::Api` creates stage named `Stage` instead of requested stage name HOT 6
- "Invalid OpenAPI input" when OpenAPI set to `3.1.0` HOT 4
- AWS SAM Connector Write needs PutObjectTagging HOT 2
- Setting the runtime of a function to nodejs20.x causes sam validate to fail. HOT 2
- AWS::Serverless::Api - setting "OpenApiVersion" causes "Stage" deployment to be skipped - why? HOT 6
- [Test] GitHub Action automatic comments on GitHub closed Issue HOT 1
- AlwaysDeploy does not include GatewayResponse updates HOT 7
- Please explain how to version AWS::Serverless::Function artifacts cleanly HOT 11
- Bug: AWS::Serverless::Function Policies partly not applied HOT 8
- Cors error from SAM template and Auth enabled. HOT 3
- VSCode SAM Schema Validation Error with !Ref in Conditions Section HOT 7
- Bug: Creates unnecessary AWSLambdaVPCAccessExecutionRole role HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from serverless-application-model.