MCPcopy Create free account
hub / github.com/aws/aws-cli / export

Method export

awscli/customizations/cloudformation/artifact_exporter.py:695–712  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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():

Calls 3

export_metadataMethod · 0.95
export_resourcesMethod · 0.95