微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

通过 TaskCat 拒绝访问 S3

如何解决通过 TaskCat 拒绝访问 S3

我想使用 Taskcat 进行部署。一切都很好,除了(一如既往)权限。我为我的模板创建了一个存储桶,它在配置文件中被引用。我调用 taskcat test run,在模板上传到我的存储桶后,我收到一个错误stack creation 由于 S3 error: Access Denied 而失败。

由于我可以通过 TaskCat 上传模板,因此我的帐户拥有正确的权限。我是否需要添加存储桶权限,以便 Cloudformation 可以访问存储桶?

错误代码

 _            _             _   
| |_ __ _ ___| | _____ __ _| |_ 
| __/ _` / __| |/ / __/ _` | __|
| || (_| \__ \   < (_| (_| | |_ 
 \__\__,_|___/_|\_\___\__,_|\__|
                                

version 0.9.23
[WARN   ] : ---
[WARN   ] : Linting detected issues in: mypath/template.yml
[WARN   ] :     line 14 [2001] [Check if Parameters are Used] Parameter AZone3 not used.
[INFO   ] : Will not delete bucket created outside of taskcat task-cat-bucket
[ERROR  ] : ClientError An error occurred (ValidationError) when calling the CreateStack operation: S3 error: Access Denied
For more information check http://docs.aws.amazon.com/AmazonS3/latest/API/ErrorResponses.html
Exception ignored in: <function Pool.__del__ at 0x7f9593cec790>
Traceback (most recent call last):
  File "/usr/lib/python3.8/multiprocessing/pool.py",line 268,in __del__
    self._change_notifier.put(None)
  File "/usr/lib/python3.8/multiprocessing/queues.py",line 368,in put
    self._writer.send_bytes(obj)
  File "/usr/lib/python3.8/multiprocessing/connection.py",line 200,in send_bytes
    self._send_bytes(m[offset:offset + size])
  File "/usr/lib/python3.8/multiprocessing/connection.py",line 411,in _send_bytes
    self._send(header + buf)
  File "/usr/lib/python3.8/multiprocessing/connection.py",in _send
    n = write(self._handle,buf)
OSError: [Errno 9] Bad file descriptor
Exception ignored in: <function Pool.__del__ at 0x7f9593cec790>
Traceback (most recent call last):
  File "/usr/lib/python3.8/multiprocessing/pool.py",buf)
OSError: [Errno 9] Bad file descriptor

解决方法

当您通过控制台启动 CloudFormation Stack 时,您所登录的用户及其凭据将用于周围的所有操作。

当您说您可以上传到 S3 存储桶时,并不能直接转化为您也可以下载对象。

因此请检查您的 configured credentials 是否具有操作所需的权限。

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。