Note_Tech

All technological notes.


Project maintained by simonangel-fong Hosted on GitHub Pages — Theme by mattgraham

AWS - Systems Manager(SSM)

Back


AWS Systems Manager


Parameter Store

ssm_parameter_store


ssm_parameter_store_hierarchy


Standard and advanced parameter tiers

ssm_parameter_tiers


Parameters Policies

ssm_parameter_policies


Hands-on

ssm_parameter_store_handson01

ssm_parameter_store_handson01

ssm_parameter_store_handson01

ssm_parameter_store_handson01

ssm_parameter_store_handson01

ssm_parameter_store_handson01

ssm_parameter_store_handson01

aws ssm get-parameters --names /my-app/dev-pwd /my-app/dev-url

ssm_parameter_store_handson01

# GET PARAMETERS WITH DECRYPTION
aws ssm get-parameters --names /my-app/dev-pwd /my-app/dev-url --with-decryption

ssm_parameter_store_handson10

# GET PARAMETERS BY PATH
aws ssm get-parameters-by-path --path /my-app/dev/

ssm_parameter_store_handson10

# GET PARAMETERS BY PATH WITH DECRYPTION
aws ssm get-parameters-by-path --path /my-app/ --recursive --with-decryption

ssm_parameter_store_handson10


Hands-on: integrate with lambda

ssm_parameter_store_handson10

ssm_parameter_store_handson10

import json
import boto3
import os

ssm = boto3.client('ssm', region_name="us-east-1")
app_name = os.environ['APP_NAME']

def lambda_handler(event, context):
    db_url = ssm.get_parameters(Names=[app_name + "/dev-url"])
    print(db_url)
    db_password = ssm.get_parameters(Names=[app_name + "/dev_pwd"], WithDecryption=True)
    print(db_password)
    return "worked!"

ssm_parameter_store_handson10

ssm_parameter_store_handson10

ssm_parameter_store_handson10

ssm_parameter_store_handson10

ssm_parameter_store_handson10

ssm_parameter_store_handson10

ssm_parameter_store_handson10

ssm_parameter_store_handson10

ssm_parameter_store_handson10

ssm_parameter_store_handson10


SSM - Session Manager

ssm_session_manager_diagram


Hands-on

hands-on

hands-on

hands-on

hands-on


hands-on

hands-on

hands-on

hands-on

hands-on

hands-on


hands-on

hands-on


Run Command

ssm_run_command_diagram.png


Patch Manager

ssm_patch_manager_diagram.png


Maintenance Windows

ssm_maintenance_windows_diagram.png


Automation

ssm_automation_diagram.png


TOP