taskcat
taskcat copied to clipboard
Taskcat upload fails without proper error log
Hi team,
I am running taskcat upload to package and upload my project to an S3 bucket. However, when I have add multiple regions in my .taskcat.yml file, then the upload fails without any debug logs on the region that caused the failure.
Here is my current .taskcat.yml file:
project:
name: cfn-ecr-aws-soci-index-builder
owner: [email protected]
s3_regional_buckets: true
lambda_source_path: functions/source
lambda_zip_path: functions/packages
parameters:
QSS3BucketName: $[taskcat_autobucket]
QSS3KeyPrefix: "cfn-ecr-aws-soci-index-builder/"
SociRepositoryImageTagFilters: "*:*"
tests:
can-deploy:
regions:
- us-east-1
- eu-west-1
- us-west-1
- ap-southeast-1
- ap-northeast-1
- us-west-2
- sa-east-1
- ap-southeast-2
- eu-central-1
- ap-northeast-2
- ap-south-1
- us-east-2
- ca-central-1
- eu-west-2
- eu-west-3
- ap-northeast-3
- eu-north-1
- me-south-1
- eu-south-1
- af-south-1
template: templates/SociIndexBuilder.yml
Here is the error log:
[ERROR ] : ClientError An error occurred (InvalidToken) when calling the GetBucketLocation operation: The provided token is malformed or otherwise invalid.
Traceback (most recent call last):
File "/home/sbora/.local/lib/python3.7/site-packages/taskcat/_cli.py", line 46, in main
cli.run()
File "/home/sbora/.local/lib/python3.7/site-packages/taskcat/_cli_core.py", line 315, in run
return command(**args)
File "/home/sbora/.local/lib/python3.7/site-packages/taskcat/_cli_modules/upload.py", line 64, in __init__
buckets = config.get_buckets(boto3_cache)
File "/home/sbora/.local/lib/python3.7/site-packages/taskcat/_config.py", line 276, in get_buckets
bucket_objects, region, test
File "/home/sbora/.local/lib/python3.7/site-packages/taskcat/_config.py", line 369, in _create_regional_bucket_obj
bucket_obj.create()
File "/home/sbora/.local/lib/python3.7/site-packages/taskcat/_dataclasses.py", line 307, in create
if self._bucket_matches_existing():
File "/home/sbora/.local/lib/python3.7/site-packages/taskcat/_dataclasses.py", line 383, in _bucket_matches_existing
location = self.s3_client.get_bucket_location(Bucket=self.name)[
File "/home/sbora/.local/lib/python3.7/site-packages/botocore/client.py", line 553, in _api_call
return self._make_api_call(operation_name, kwargs)
File "/home/sbora/.local/lib/python3.7/site-packages/botocore/client.py", line 1009, in _make_api_call
raise error_class(parsed_response, operation_name)
botocore.exceptions.ClientError: An error occurred (InvalidToken) when calling the GetBucketLocation operation: The provided token is malformed or otherwise invalid.
Expectation
Region name should be displayed in the error log to help debug the issue