Merge pull request #251 from joekiller/cfn_eni

enable cloudformation of NetworkInterface
This commit is contained in:
Steve Pulec 2014-11-04 17:22:32 -05:00
commit 41282c9e48
4 changed files with 60 additions and 1 deletions

View file

@ -18,6 +18,7 @@ MODEL_MAP = {
"AWS::EC2::EIP": ec2_models.ElasticAddress,
"AWS::EC2::Instance": ec2_models.Instance,
"AWS::EC2::InternetGateway": ec2_models.InternetGateway,
"AWS::EC2::NetworkInterface": ec2_models.NetworkInterface,
"AWS::EC2::Route": ec2_models.Route,
"AWS::EC2::RouteTable": ec2_models.RouteTable,
"AWS::EC2::SecurityGroup": ec2_models.SecurityGroup,

View file

@ -203,6 +203,10 @@ class NetworkInterface(object):
raise NotImplementedError('"Fn::GetAtt" : [ "{0}" , "SecondaryPrivateIpAddresses" ]"')
raise UnformattedGetAttTemplateException()
@property
def physical_resource_id(self):
return self.id
class NetworkInterfaceBackend(object):
def __init__(self):