Upload local artifacts and rewrite a template.
Section: Packaging and Artifact Flows
Package local artifacts
bash
bash
aws cloudformation package --template-file template.yaml --s3-bucket my-cfn-artifacts --output-template-file packaged.yamlExplanation
Useful when templates reference local Lambda zips or nested templates.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Packaging and Artifact Flows
Deploy without failing on empty change set
Treat no-op deployments as success.
Validate a template
Check a template for basic syntax and structural validity.