gpt4 book ai didi

json - 发行 “Accessing S3 bucket from ElasticBeanstalk using Docker Json file”

转载 作者:行者123 更新时间:2023-12-02 20:23:29 28 4
gpt4 key购买 nike

当我尝试从ElasticBeanstalk在Docker Hub中部署代码时,出现以下错误。
问题出在S3存储桶端点上。在下面的Json模板中为S3存储桶指定端点的正确方法是什么。

错误:

<Error><Code>NoSuchBucket</Code>
<Message>The specified bucket does not exist</Message>
<BucketName>srini-bucket</BucketName>
<RequestId>87B1CFBA66EAC80B</RequestId>
<HostId>XSzOT/Efj0nFK8Qks6XpH6HBthCA7j9q8M42eRiqrgBqvM3Nl4f4rt73r+JhUao= </HostId>
</Error>
Failed to download authentication credentials docker/.dockercfg from srini-bucket(Executor::NonZeroExitStatus)

JSON模板
{
"AWSEBDockerrunVersion": "1",
"Image": {
"Name": "champ45/tomstar",
"Update": "true"
},
"Authentication": {
"Bucket": "srini-bucket.s3-us-west-1.amazonaws.com",
"Key": "dockerFolder/.dockercfg"
},
"Ports": [
{
"ContainerPort": "80"
}
],
"Logging": "/var/log/"
}

最佳答案

我认为JSON模板中指定的存储桶名称错误。 .s3-us-west-1.amazonaws.com是不必要的。

请阅读以下文档中的Using Images from a Private Repository部分:
http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/create_deploy_docker_image.html

关于json - 发行 “Accessing S3 bucket from ElasticBeanstalk using Docker Json file”,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36024219/

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