Skip to content

Instantly share code, notes, and snippets.

@timbaileyjones
Last active May 22, 2020 01:21
Show Gist options
  • Select an option

  • Save timbaileyjones/d51a3127e33017dfee0123efddc1eb94 to your computer and use it in GitHub Desktop.

Select an option

Save timbaileyjones/d51a3127e33017dfee0123efddc1eb94 to your computer and use it in GitHub Desktop.
src/__main__.py
# alternative entry point for local execution
# (see final section of the article: Extra Python Tip)
src/cloudwatch_dashboards/__init__.py
# zero-byte file to mark cloudwatch_dashboards as a module
src/cloudwatch_dashboards/cloudwatch_dashboards.py
# contains the lambda_handler() entrypoint, calls all other code.
src/cloudwatch_dashboards/helpers/update_dashboards.py
# figures out which service to generate dashboards for
src/cloudwatch_dashboards/helpers/create_delete_dashboards.py
src/cloudwatch_dashboards/helpers/util.py
# common code used regardless of resource type
src/cloudwatch_dashboards/helpers/cloudwatch_apigw.p y
src/cloudwatch_dashboards/helpers/cloudwatch_cloudfront.py
src/cloudwatch_dashboards/helpers/cloudwatch_dynamodb.py
src/cloudwatch_dashboards/helpers/cloudwatch_lambda.py
src/cloudwatch_dashboards/helpers/cloudwatch_s3.py
# resource-type-specific code that cannot be genericized, due to
# inconsistencies in method naming, parameter naming, and
# differences in the property names of the JSON responses for
# each service.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment