We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
aws-serverless-data-lake-framework/sdlf-team/lambda/pipelines-dynamodb/src/lambda_function.py
Line 46 in 19fb396
This doesn't seem to be the most efficient way to tackle this task.
Currently it pulls all the SSM parameters for the team then checks to see if the pipeline exist, if not then create.
is there a reason the function isn't grabbing the parameters directly to see if they exist, if not then create?
for example
def exist_ssm_param(param_name: str) -> bool: ssm = boto3.client('ssm', region_name='us-east-1') try: response = ssm.get_parameter( Name=param_name ) return True except ssm.exceptions.ParameterNotFound: return False
The text was updated successfully, but these errors were encountered:
No branches or pull requests
aws-serverless-data-lake-framework/sdlf-team/lambda/pipelines-dynamodb/src/lambda_function.py
Line 46 in 19fb396
This doesn't seem to be the most efficient way to tackle this task.
Currently it pulls all the SSM parameters for the team then checks to see if the pipeline exist, if not then create.
is there a reason the function isn't grabbing the parameters directly to see if they exist, if not then create?
for example
def exist_ssm_param(param_name: str) -> bool: ssm = boto3.client('ssm', region_name='us-east-1') try: response = ssm.get_parameter( Name=param_name ) return True except ssm.exceptions.ParameterNotFound: return False
The text was updated successfully, but these errors were encountered: