Comments (10)
@sanathkr Just upgraded to the most recent version, still running into this issue.
from serverless-application-model.
That's a known bug. When you add a default value to a parameter, deploy
command doesn't pass it to CloudFormation. Try adding --parameters EnvParameter=prod
to the command until this bug is fixed
from serverless-application-model.
For me, --parameters didn't work. I used --parameter-overrides. Im fairly new to AWS, so maybe AWS updated? Since this post was from Dec 2016.
Also, I got this issue when updating a stack. I'm on aws-cli 1.15.55, which I believe is the latest version. It worked after I added a --parameter-overrides flag.
from serverless-application-model.
That works. The following yaml and CLI command worked for providing the parameters:
Parameters:
EnvParameter:
Type: String
Description: Enter string for environment label of this deployment. Can represent a feature demo env, or a persistent testing environment.
aws cloudformation deploy --template-file template.yaml --stack-name stack2 --parameter-overrides EnvParameter=prod --capabilities CAPABILITY_IAM --profile sandbox
from serverless-application-model.
@bgenchel, @sbrickner you are probably running into aws/aws-cli#2599 - which happens when you create stack for very first time.
Until we fix this bug, you can override the parameter explicitly when you add a new parameter with default value. Just once when you first update the stack. Afterwards, UsePreviousValue should work as expected
from serverless-application-model.
@raj-yadav9 It’s difficult to be sure without seeing the Parameters
section of the template. That said, the error message indicates that it expects a parameter named subnetIds
, but the command is specifying a parameter named SubnetIDs
. Also, the value of SubnetIDs
has spaces in it, which is probably confusing your shell. I suspect you’d prefer it to look something like this:
'subnetIds=subnet-2ezr3,subnet-0yguft'
from serverless-application-model.
Is there any update on when this may be fixed?
from serverless-application-model.
This is already fixed. aws/aws-cli#2360
from serverless-application-model.
This is still an issue. Deploying a SAM template with aws cloudformation deploy throws the following exception:
An error occurred (ValidationError) when calling the CreateChangeSet operation: Cannot specify UsePreviousValue on Parameters when ChangeSetType is CREATE
The suggested fix of adding a default parameter does not work. Is there a work around?
from serverless-application-model.
An error occurred (ValidationError) when calling the CreateChangeSet operation: Parameters: [subnetIds] must have values
my command- aws cloudformation deploy --template-file airflow.yaml --stack-name cloud-dev --parameter-overrides vpcId=123 SubnetIDs=subnet-2ezr3 , subnet-0yguft Env=dev --capabilities CAPABILITY_NAMED_IAM --profile staging
Can anyone help me with this error??
from serverless-application-model.
Related Issues (20)
- 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
- Api CORS issue with 500 status after setup Cognito authorizer HOT 3
- Building features for AWS SAM HOT 4
- Can't reset BinaryMediaTypes to a default value for API Gateway REST API HOT 2
- AWS::Serverless::Api auto deploys API when a resource is being added HOT 4
- Layer code update not reflected on Lambda Function HOT 14
- Environment variables not updated HOT 5
- Bug: Using a Ref in StageName is Not Working Properly - Template.yaml HOT 4
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.