runway.cfngin.session_cache module

CFNgin session caching.

runway.cfngin.session_cache.get_session(region: Optional[str] = None, profile: Optional[str] = None, access_key: Optional[str] = None, secret_key: Optional[str] = None, session_token: Optional[str] = None) boto3.session.Session[source]

Create a thread-safe boto3 session.

Parameters
  • region – The region for the session.

  • profile – The profile for the session.

  • access_key – AWS Access Key ID.

  • secret_key – AWS secret Access Key.

  • session_token – AWS session token.

Returns

A thread-safe boto3 session.