This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import argparse | |
def main(): | |
# Instantiate the parser | |
parser = argparse.ArgumentParser(description='Retrieves a given datapoint from input PSE:TICKER. Supports timeseries data.') | |
# This is an example of configuring positional input arguments to your script | |
parser.add_argument('ticker', type=str, help='PSE Ticker') | |
parser.add_argument('field', type=str, help='Fieldname') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import boto3 | |
import os | |
print("SSM Parameter Store Demo using Python SDK") | |
# TODO: Configure IAM role from basic Lambda execution to add read-only access to SSM | |
def lambda_handler(event, context): | |
ssm = boto3.client("ssm") |