pcf.util.aws package¶
Submodules¶
pcf.util.aws.aws_lookup module¶
-
class
pcf.util.aws.aws_lookup.AWSLookup¶ Bases:
objectClass 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)¶
-
class
pcf.util.aws.tag_specifications.EC2InstanceTagSpecifications(**kwargs)¶