Skip to content

Commit 452ecde

Browse files
committed
Fix invalidation with boto3
The call to create a new invalidation on CloudFront was incorrectly ported to boto3. With boto3 the paths should not be wrapped in tags and quoted.
1 parent 0b7a25a commit 452ecde

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

s3_deploy/deploy.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -234,8 +234,7 @@ def path_from_key_name(key_name):
234234
InvalidationBatch=dict(
235235
Paths=dict(
236236
Quantity=len(paths),
237-
Items=['<Path>' + quote_plus(p) + '</Path>'
238-
for p in paths]
237+
Items=paths
239238
),
240239
CallerReference='s3-deploy-website'
241240
)

0 commit comments

Comments
 (0)