Closed jwiechmann closed 1 year ago
The implementation in v301 is using this:
state_machine/utils/string_manipulation.py
###############################################################################
# !/bin/python
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0
"""State Machine Handler module"""
def convert_string_to_list(comma_delimited_list: str) -> list:
"""
Converts the comma delimited list of string to a list type and skips adding
empty strings to the list.
:param comma_delimited_list:
:return: list
"""
empty_string = ''
return [value.strip() for value in comma_delimited_list.split(',')
if value != empty_string]
Thanks for opening this issue. We will test and fix this in the next release planned for Q2 2023. Thanks.
Thanks for raising this issue. This bug will be resolved in the next release.
Describe the bug
After the approve step via the cognito GUI the state machine causes an error: "An error occurred (InvalidParameterValue) when calling the CreateRoute operation: invalid value for parameter destination-cidr-block:" This means, the lambda is trying to add a route with an empty CIDR parameter. This is caused by trying to read the PREFIX_LISTS but this list is empty. The step to use CIDR_BLOCK is working well.
To Reproduce
This environment is used:
With this workaround it's running well: PREFIX_LISTS=10.0.0.0/8
Expected behavior
Request can be approved.
Please complete the following information about the solution:
To get the version of the solution, you can look at the description of the created CloudFormation stack. For example, "(SO0009) - The AWS CloudFormation template for deployment of the aws-centralized-logging. Version v1.0.0". You can also find the version from releases
Screenshots If applicable, add screenshots to help explain your problem (please DO NOT include sensitive information).
Additional context
*** Source Code
*** CloudWatch