Based on a local AWS Cloud Formation .yaml file. I'm running the following command
aws cloudformation create-stack --stack-name someTest --template-body file://template.yaml
throwing the following error
An error occurred (InsufficientCapabilitiesException) when calling the CreateStack operation: Requires capabilities : [CAPABILITY_AUTO_EXPAND]
I've read here that this is related to the fact that the template contains macros. In this case, inside the .yaml file, it calls the AWS::Serverless::Function, that is,
Resources:
ResourceName:
Type: AWS::Serverless::Function
...
...
What are the options for resolving this issue when creating a stack?