Exports the local artifacts referenced by the given template to an s3 bucket. :return: The template with references to artifacts that have been exported to s3.
(self)
| 693 | return template_dict |
| 694 | |
| 695 | def export(self): |
| 696 | """ |
| 697 | Exports the local artifacts referenced by the given template to an |
| 698 | s3 bucket. |
| 699 | |
| 700 | :return: The template with references to artifacts that have been |
| 701 | exported to s3. |
| 702 | """ |
| 703 | self.template_dict = self.export_metadata(self.template_dict) |
| 704 | |
| 705 | if "Resources" not in self.template_dict: |
| 706 | return self.template_dict |
| 707 | |
| 708 | self.template_dict = self.export_global_artifacts(self.template_dict) |
| 709 | |
| 710 | self.export_resources(self.template_dict["Resources"]) |
| 711 | |
| 712 | return self.template_dict |
| 713 | |
| 714 | def export_resources(self, resource_dict): |
| 715 | for resource_id, resource in resource_dict.items(): |