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)
- 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
- Environment variables not updated HOT 5
- Bug: Using a Ref in StageName is Not Working Properly - Template.yaml HOT 4
- !If not working on Serverless:Function handler HOT 5
- how to configure KMSVerifyPolicy and KMSSignPolicy HOT 1
- Feature request: Git sync HOT 4
- Security: default permission allow any service to invoke a lambda function HOT 3
- Several tests fail with Pydantic 1.10.15 (latest 1.x) HOT 6
- (New Connector Profile) AWS Batch HOT 1
- EventInvokeConfig does not appear in processed template when following the spec HOT 3
- (New Connector Profile) AWS::ApiGateway::RestApi > AWS::Serverless::StateMachine HOT 1
- Bug: Lambda function (with alias) doesn't create a new version after its layer is updated, even if `AutoPublishAliasAllProperties` is set to `true` HOT 7
- Several tests fail with Pydantic 1.10.17 (latest 1.x) HOT 5
- Bug: No new Lambda Versions are deployed with Lambda configurations changes HOT 6
- Event sources do not invoke versioned state machines by their alias HOT 4
- Lambda layer code not updated in Lambda function during `sam sync` HOT 1
- SQS:*Batch permissions aren't vaild permissions HOT 2
- Can't use ForEach intrinsic function to define resources HOT 6
- Set Pydantic 2.* as possible dependency HOT 2
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.