Skip to content

Make ProvisionedThroughput optional or Novalue

0

Want to create a common product to create a dynamodb table which supports either one of the options (BillingMode or ProvisionedThroughput). Lets say in the below example if the user has provided BillingMode , ProvisionedThroughput should be skipped. Is there way I can add condition for parameters which takes multiple values?

  ProvisionedThroughput:
    ReadCapacityUnits: !Ref rUnits
    WriteCapacityUnits: !Ref wUnits
  BillingMode:
    !If [ UseBillingMode, !Ref BillingMode, !Ref "AWS::NoValue" ]
1 Answer
0

Yes, you can use a CloudFormation Condition as described here

AWS
EXPERT
answered 3 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.