Skip to content

Commit 7e1bc1b

Browse files
committed
invalidate plots
1 parent 323378f commit 7e1bc1b

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.travis/invalidate_cloudfront.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,19 @@
11
import boto3
2+
import time
23

34
client = boto3.client('cloudfront')
45

56
response = client.create_invalidation(
67
DistributionId='EL6HA8RZFI08I',
78
InvalidationBatch={
89
'Paths': {
9-
'Quantity': 1,
10+
'Quantity': 2,
1011
'Items': [
1112
'/index.html',
13+
'/img/plots/*'
1214
]
1315
},
14-
'CallerReference': 'string'
16+
'CallerReference': str(time.time())
1517
}
1618
)
1719
print(response)

0 commit comments

Comments
 (0)