runway.cfngin.hooks.iam module

AWS IAM hook.

runway.cfngin.hooks.iam.create_ecs_service_role(provider, context, **kwargs)[source]

Create ecsServieRole, which has to be named exactly that currently.

http://docs.aws.amazon.com/AmazonECS/latest/developerguide/IAM_policies.html#service_IAM_role

Parameters
Keyword Arguments

role_name (str) – Name of the role to create. (default: ecsServiceRole)

Returns

Whether or not the hook succeeded.

Return type

bool

runway.cfngin.hooks.iam.ensure_server_cert_exists(provider, context, **kwargs)[source]

Ensure server cert exists.

Parameters
Keyword Arguments
  • cert_name (str) – Name of the certificate that should exist.

  • prompt (bool) – Whether to prompt to upload a certificate if one does not exist. (default: True)

Returns

Dict containing status, cert_name, and

cert_arn.

Return type

Dict[str, str]