Amazon web services 通过TaskCat拒绝访问S3

Amazon web services 通过TaskCat拒绝访问S3,amazon-web-services,amazon-s3,amazon-cloudformation,Amazon Web Services,Amazon S3,Amazon Cloudformation,我想使用Taskcat进行部署。一切都很好,除了(一如既往)权限。我为模板创建了一个bucket,在配置文件中引用。我调用taskcat test run,在模板上传到我的bucket后,我收到一个错误,堆栈创建失败,原因是S3错误:访问被拒绝 因为我可以通过TaskCat上传模板,所以我对我的帐户拥有正确的权限。我是否需要添加一个bucket权限,以便Cloudformation可以访问该bucket 错误代码: _ _ _ | |_ __

我想使用Taskcat进行部署。一切都很好,除了(一如既往)权限。我为模板创建了一个bucket,在配置文件中引用。我调用
taskcat test run
,在模板上传到我的bucket后,我收到一个错误,
堆栈创建
失败,原因是
S3错误:访问被拒绝

因为我可以通过TaskCat上传模板,所以我对我的帐户拥有正确的权限。我是否需要添加一个bucket权限,以便Cloudformation可以访问该bucket

错误代码:

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

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
\uuuu
| |_ __ _ ___| | _____ __ _| |_ 
| __/ _` / __| |/ / __/ _` | __|
| || (_| \__ \   < (_| (_| | |_ 
\__\__,_|___/_|\_\___\__,_|\__|
版本0.9.23
[警告]:---
[警告]:Linting在:mypath/template.yml中检测到问题
[警告]:第14行[2001][检查是否使用参数]未使用参数AZone3。
[信息]:不会删除在taskcat任务cat bucket之外创建的bucket
[错误]:ClientError调用CreateStack操作时发生错误(ValidationError):S3错误:访问被拒绝
有关更多信息,请查看http://docs.aws.amazon.com/AmazonS3/latest/API/ErrorResponses.html
在中忽略异常:
回溯(最近一次呼叫最后一次):
文件“/usr/lib/python3.8/multiprocessing/pool.py”,第268行,在__
self.\u change\u notifier.put(无)
文件“/usr/lib/python3.8/multiprocessing/queues.py”,第368行,输入
self.\u writer.send\u字节(obj)
文件“/usr/lib/python3.8/multiprocessing/connection.py”,第200行,以发送字节为单位
self.\u发送\u字节(m[偏移量:偏移量+大小])
文件“/usr/lib/python3.8/multiprocessing/connection.py”,第411行,以字节为单位
自发送(页眉+buf)
文件“/usr/lib/python3.8/multiprocessing/connection.py”,第368行,在
n=写入(自.\u句柄,buf)
OSError:[Errno 9]错误的文件描述符
在中忽略异常:
回溯(最近一次呼叫最后一次):
文件“/usr/lib/python3.8/multiprocessing/pool.py”,第268行,在__
self.\u change\u notifier.put(无)
文件“/usr/lib/python3.8/multiprocessing/queues.py”,第368行,输入
self.\u writer.send\u字节(obj)
文件“/usr/lib/python3.8/multiprocessing/connection.py”,第200行,以发送字节为单位
self.\u发送\u字节(m[偏移量:偏移量+大小])
文件“/usr/lib/python3.8/multiprocessing/connection.py”,第411行,以字节为单位
自发送(页眉+buf)
文件“/usr/lib/python3.8/multiprocessing/connection.py”,第368行,在
n=写入(自.\u句柄,buf)
OSError:[Errno 9]错误的文件描述符

当您通过控制台启动
CloudFormation堆栈时,您登录的用户,其凭证将用于周围的所有操作

当你说你可以上传到S3时,bucket并不能直接转化为你可以下载的对象

因此,请检查您是否拥有该操作所需的权限