gpt4 book ai didi

amazon-web-services - AWS CLI 创建云前端分发 : --distribution-config

转载 作者:行者123 更新时间:2023-12-04 08:09:25 25 4
gpt4 key购买 nike

尝试使用 AWS CLI 进行云前端分发,需要一个参数 --distribution-config

aws cloudfront create-distribution
aws: error: argument --distribution-config is required

我假设这是一个带有分发配置的 json 字符串,但我找不到任何关于它的文档。
我在哪里可以找到一个最小的工作示例?

最佳答案

以下 JSON 对我有用。我使用 get-distribution-config 来生成它。

{
"Comment": "example json",
"CacheBehaviors": {
"Quantity": 0
},
"Logging": {
"Bucket": null,
"Prefix": null,
"Enabled": false,
"IncludeCookies": false
},
"Origins": {
"Items": [
{
"S3OriginConfig": {
"OriginAccessIdentity": null
},
"Id": "S3-origin",
"DomainName": "example.s3.amazonaws.com"
}
],
"Quantity": 1
},
"DefaultRootObject": null,
"PriceClass": "PriceClass_All",
"Enabled": false,
"DefaultCacheBehavior": {
"TrustedSigners": {
"Enabled": false,
"Quantity": 0
},
"TargetOriginId": "S3-origin",
"ViewerProtocolPolicy": "allow-all",
"ForwardedValues": {
"Headers": {
"Quantity": 0
},
"Cookies": {
"Forward": "none"
},
"QueryString": false
},
"SmoothStreaming": false,
"AllowedMethods": {
"Items": [
"GET",
"HEAD"
],
"Quantity": 2
},
"MinTTL": 0
},
"CallerReference": "example",
"ViewerCertificate": {
"CloudFrontDefaultCertificate": true
},
"CustomErrorResponses": {
"Quantity": 0
},
"Restrictions": {
"GeoRestriction": {
"RestrictionType": "none",
"Quantity": 0
}
},
"Aliases": {
"Quantity": 0
}
}

关于amazon-web-services - AWS CLI 创建云前端分发 : --distribution-config,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26094615/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com