pcf.util.aws package

Submodules

pcf.util.aws.aws_lookup module

class pcf.util.aws.aws_lookup.AWSLookup

Bases: object

Class of all the AWS lookup resources

ami(names)

Uses boto3 api call to get ami id

Returns:Image ID with corresponding Image name
ec2_client
ec2_resource
get_id(resource, names)
iam(names)

Used boto3 api call to get latest iam role

Returns:Either instance profile or role with given name
instance_name(names)

Given instance-id, this returns the instance name for ec2.

Returns:instance_name
methods
region_name = 'us-east-1'
snapshot(names)

Uses boto3 api call to get latest snapshot id

Returns:Snapshot ID of Snapshot with corresponding name
subnet(names)

Uses boto3 api call to get subnet id

Returns:Subnet ID with corresponding Subnet name

pcf.util.aws.tag_specifications module

class pcf.util.aws.tag_specifications.EBSTagSpecifications(**kwargs)

Bases: pcf.util.aws.tag_specifications.TagSpecifications

class pcf.util.aws.tag_specifications.EC2InstanceTagSpecifications(**kwargs)

Bases: pcf.util.aws.tag_specifications.TagSpecifications

class pcf.util.aws.tag_specifications.TagSpecifications(resource_type, **kwargs)

Bases: object

DEFAULT_RESOURCE_TYPE = None
KEY = 'Key'
VALUE = 'Value'
add_tag(name, value)
add_tags(*tags, **kvp)
classmethod create_from_aws_response(aws_response)
delete_tag(name)
delete_tags(*names)
render()

Module contents