cmd下执行报错:
aws cloudfront get-invalidation --id xxxxx--distribution-id xxxxxx
SSL validation failed for https://cloudfront.amazonaws.com/2019-03-26/distribution/E29MF04O6RWBTG/invalidation/I16GDT5A0CECFC [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:749)
解决方法:
使用 --no-verify-ssl
aws cloudfront get-invalidation --id xxxxx--distribution-id xxxxx --no-verify-ssl
C:\Program Files\Amazon\AWSCLI\runtime\lib\site-packages\urllib3\connectionpool.py:1004: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
InsecureRequestWarning,
{
"Invalidation": {
"Id": "I16GDT5A0CECFC",
"Status": "Completed",
"CreateTime": "2021-11-24T08:03:35.965Z",
"InvalidationBatch": {
"Paths": {
"Quantity": 1,
"Items": [
"/Ceramy/image/img/A01X/partnumbering_j_02.pdf"
]
},
"CallerReference": "1637741015.8242042"
}
}
}