Skip to content
New issue

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

Pulling all ssm parameters rather than checking to see if it exist. #352

Open
chamiles opened this issue Jul 1, 2024 · 0 comments
Open

Comments

@chamiles
Copy link

chamiles commented Jul 1, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant