dimanche 24 mai 2015

Creating a simiple AWS Elastic Load Balancer using powershell

I'm trying to create an EBL using powershell using the script below, but it's failings with "New-ELBLoadBalancer : A WebException with status NameResolutionFailure was thrown." I'm not sure where to start, any hints?

$HTTPListener = New-Object -TypeName ‘Amazon.ElasticLoadBalancing.Model.Listener’
$HTTPListener.Protocol = ‘http’
$HTTPListener.InstancePort = 80
$HTTPListener.LoadBalancerPort = 80

New-ELBLoadBalancer -LoadBalancerName 'my-elb' -Listener $HTTPListener -Scheme 'internet-facing' -SecurityGroup 'sg-74d60410' -Subnet 'subnet-efc9b8d5' -AccessKey x -SecretKey x -Region us-west1 




Aucun commentaire:

Enregistrer un commentaire