【问题标题】:Access denied to S3 via TaskCat通过 TaskCat 拒绝访问 S3
【发布时间】:2021-02-02 20:44:33
【问题描述】:

我想使用 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", line 368, 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", 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", line 368, in _send
    n = write(self._handle, buf)
OSError: [Errno 9] Bad file descriptor

【问题讨论】:

    标签: amazon-web-services amazon-s3 amazon-cloudformation


    【解决方案1】:

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

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

    所以请检查您的configured credentials,如果您有必要的操作权限。

    【讨论】:

      猜你喜欢
      • 2019-10-21
      • 1970-01-01
      • 2017-12-24
      • 2021-11-06
      • 2012-09-11
      • 2021-07-27
      • 2013-08-15
      • 2023-03-22
      • 2020-09-30
      相关资源
      最近更新 更多