CloudFormation provides two options for deploying templates using the AWS CLI:
aws cloudformation create-stack
aws cloudformation deploy
What are the differences between the two?
Create stack is a specific API action for creating AWS CloudFormation stacks.
Deploy is an abstraction for managing AWS CloudFormation stacks and change sets. The list of API actions available for CloudFormation does not include
create-stack, which is a direct API call,
execute-change-set in a single convenient command.
The following command will either create a new stack if one does not exist, or create a change set and execute the change set to update an existing stack.
If the author wants to review the change set before automatically applying, the flag
--no-execute-changeset can be used:
aws cloudformation deploy will be easiest to use. It automatically handles creating or updating change sets on the user’s behalf.