Add GetAtt support to elbv2 LoadBalancer
This commit is contained in:
parent
9804d7a963
commit
63c33211ee
2 changed files with 26 additions and 2 deletions
|
|
@ -274,6 +274,12 @@ class FakeLoadBalancer(BaseModel):
|
|||
load_balancer = elbv2_backend.create_load_balancer(name, security_groups, subnet_ids, scheme=scheme)
|
||||
return load_balancer
|
||||
|
||||
def get_cfn_attribute(self, attribute_name):
|
||||
attributes = {
|
||||
'DNSName': self.dns_name,
|
||||
'LoadBalancerName': self.name,
|
||||
}
|
||||
return attributes[attribute_name]
|
||||
|
||||
class ELBv2Backend(BaseBackend):
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue