N2WS-21278 - clone TGW fails with KeyError

N2WS-21278 - clone TGW fails with KeyError

Issue:

User can't clone or download TGW and it fail with this error in server logs
ERROR: execute(vpc_operations.py:468) Failed download template: 42. Wet: False
Traceback (most recent call last):
File "./cpmserver/cpm/model_operations/vpc_operations.py", line 440, in execute
File "n2wsoftware/cpmserver/cpm/vpc/capture_vpc.py", line 506, in prepare_resources_template
File "n2wsoftware/cpmserver/cpm/vpc/capture_vpc.py", line 3408, in construct_cf_template
File "n2wsoftware/cpmserver/cpm/vpc/capture_vpc.py", line 1000, in construct_cf_template
File "n2wsoftware/cpmserver/cpm/vpc/capture_vpc.py", line 869, in create_cf_nested_stack_template
KeyError: 'tgwattachac12e2a4fec2fa1c'
ERROR: log_response(log.py:230) Internal Server Error: /api/aws/captured_vpcs/41/cloudformation_template/tgw


Solution:
Patch for v4.1.1 is available and attached to this KB. 



Click here to go back to the Release notes: Release notes for the latest v4.1.x CPM release