Skip to content

Commit

Permalink
paginate ssm output
Browse files Browse the repository at this point in the history
  • Loading branch information
hargitayjpl committed Aug 8, 2024
1 parent 0bba4aa commit 9ce03ee
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions lambda/lambda_function.py
Original file line number Diff line number Diff line change
Expand Up @@ -198,15 +198,12 @@ def upload_json_to_s3(json_data, bucket_name, object_name):

def lambda_handler(event, context):
"""AWS Lambda function handler with print statements for debugging."""
# project = os.environ.get("PROJECT")
# venue = os.environ.get("VENUE")
project = "unity"
venue = "dev"
project = os.environ.get("PROJECT")
venue = os.environ.get("VENUE")
print("PROJECT:", project)
print("VENUE:", venue)

# bucket_name = f"unity-{project}-{venue}-bucket"
bucket_name = f"unity-unity-dev-bucket"
bucket_name = f"unity-{project}-{venue}-bucket"
print("BUCKET_NAME")
print("BUCKET_NAME", bucket_name)

Expand Down Expand Up @@ -276,6 +273,5 @@ def main():
response = lambda_handler(test_event, test_context)
print("Lambda Response:", response)


if __name__ == "__main__":
main()
# if __name__ == "__main__":
# main()

0 comments on commit 9ce03ee

Please sign in to comment.