brave-doctor-12316
04/07/2022, 6:48 PMgreat-queen-39697
04/07/2022, 7:12 PMFileArchive
(https://www.pulumi.com/docs/intro/concepts/assets-archives/#archives)
Note that a folder may be passed toto construct an archive from the contents of that folder. Also, both assets (single files) and archives (folders containing files) can be combined as part of building up anFileArchive
.AssetArchive
brave-doctor-12316
04/07/2022, 7:30 PMgreat-queen-39697
04/07/2022, 7:33 PMFileArchive()
call. For example, if my folder is in the same directory as my code and is called folder
, I would code the following in Python:
pulumi.FileArchive('./folder')
brave-doctor-12316
04/07/2022, 7:34 PMgreat-queen-39697
04/07/2022, 7:59 PMFileArchive
. So, for Python:
shutil.make_archive('myzip', 'zip', './folder')
....
pulumi.FileArchive('myzip.zip')
brave-doctor-12316
04/07/2022, 9:06 PM