In this reference, you can learn how to use AWS CLI to work on AWS CloudFormation.
cloudformation — AWS CLI 2 Command Reference (amazonaws.com)
Package
- packages the local artifacts and uplaod them to S3.
aws cloudformation package
aws cloudformation package --template-file /template.yaml \
--s3-bucket my-bucket-name \
--output-template-file output.yaml
aws cloudformation package --template-file /template.json \
--s3-bucket my-bucket-name \
--output-template-file output.json --use-json
