Gewusst wie: zuweisen von EIP zu Autoskalierender Gruppe der VPC in einer Cloudformation-Vorlage

Ich möchte zu teilen meine reservierte Elastische IP-Adressen(ec2-classic-ip) zu Autoskalierender Gruppe in VPC. Mit AWS Cli zog ich die ip-vpc:

$ aws ec2 move-address-to-vpc --public-ip 23.23.23.23

Und sah in aws concole, dass diese IP übergeben VPC.
Und Zugeordnete tags AutoscalingGroup in Cloudformation-Vorlage, in Ressourcen:

"Process": {
        "Type" : "AWS::AutoScaling::AutoScalingGroup",
        "Properties": {
            "LaunchConfigurationName": {"Ref": "PreprocessorLC"},
            "LoadBalancerNames": [{"Ref": "ProcessELB"}],
            "VPCZoneIdentifier" : [{ "Fn::Join" : [",", [ { "Ref" : "PublicSubnet1"}, { "Ref" : "PublicSubnet2"} ]]}],
            "AvailabilityZones": {"Ref": "AZs"},
            "MinSize" : "1",
            "MaxSize" : "1",
            "HealthCheckGracePeriod": 300,
            "Tags" : [
                {"Key": "Name", "Value": {"Fn::Join": ["", [{"Ref": "Env"}, "-Process"]]}, "PropagateAtLaunch": true},
                {"Key": "WorkersScalingGroup", "Value": {"Fn::Join": ["", ["Offering-", {"Ref": "Env"},  "-Process-Worker"]]}, "PropagateAtLaunch": true},
                {"Key": "EIP", "Value": {"Ref": "ProcessIP"}, "PropagateAtLaunch": true},
                {"Key": "Environment", "Value": {"Ref": "Env"}, "PropagateAtLaunch": true}
            ]
        }
    }

Und der Mehrwert von "ProcessIP" in-Parameter:

"ProcessIP":{
            "Description": "DEV: 23.23.23.23",
            "Type": "String",
            "Default": "23.23.23.23",
            "AllowedValues": ["23.23.23.23"]
}

Werden und es nicht funktionierte. Noch zufällige IP.
Wenn jemand sagen kann, wo ich falsch bin, oder was sollte hinzufügen, für damit es funktioniert?

Dank!

InformationsquelleAutor muzafarow | 2016-01-18

Schreibe einen Kommentar