runway.cfngin.session_cache module

CFNgin session caching.

runway.cfngin.session_cache.get_session(region=None, profile=None, access_key=None, secret_key=None, session_token=None)[source]

Create a thread-safe boto3 session.

Parameters
  • region (Optional[str]) – The region for the session.

  • profile (Optional[str]) – The profile for the session.

  • access_key (Optional[str]) – AWS Access Key ID.

  • secret_key (Optional[str]) – AWS secret Access Key.

  • session_token (Optional[str]) – AWS session token.

Returns

A thread-safe boto3 session.

Return type

boto3.session.Session