Giter Club home page Giter Club logo

Comments (2)

jpolzfuss avatar jpolzfuss commented on August 11, 2024 1

You're correct - I've got a non-empty VPCId for all the load-balancers. Thanks a lot!

from ec2-classic-resource-finder.

TheScottMo avatar TheScottMo commented on August 11, 2024

Hello Jörg,

Thank you for posting. Based on your output, it sounds like you are running Classic Load Balancers inside a VPC. As part of the EC2 Classic retirement, we are only retiring Classic Load Balancers not running in a VPC (thus running in EC2-Classic). Classic Load Balancers which are running in a VPC are not currently being retired as part of this.

You can confirm that these Classic Load Balancers are running in a VPC by running aws elb describe-load-balancers in the AWS CLI.

If you see an output like this your Classic Load Balancer is running in a VPC and the script ran correctly (Note VPCId value):

[cloudshell-user@ip-10-0-127-234 ~]$ aws elb describe-load-balancers
{
    "LoadBalancerDescriptions": [
        {
            
                "LoadBalancerName": "VPC-CLB",
                "DNSName": "VPC-CLB-484*******.us-west-2.elb.amazonaws.com",
                "CanonicalHostedZoneName": "VPC-CLB-48*******.us-west-2.elb.amazonaws.com",
                "CanonicalHostedZoneNameID": "Z1H*******",
                "ListenerDescriptions": [
                    {
                        "Listener": {
                            "Protocol": "HTTP",
                            "LoadBalancerPort": 80,
                            "InstanceProtocol": "HTTP",
                            "InstancePort": 80
                        },
                        "PolicyNames": []
                    }
                ],
                "Policies": {
                    "AppCookieStickinessPolicies": [],
                    "LBCookieStickinessPolicies": [],
                    "OtherPolicies": []
                },
                "BackendServerDescriptions": [],
                "AvailabilityZones": [
                    "us-west-2b",
                    "us-west-2a"
                ],
                "Subnets": [
                    "subnet-f6******",
                    "subnet-fe******"
                ],
                "VPCId": "vpc-d9******",
                "Instances": [],
                "HealthCheck": {
                    "Target": "HTTP:80/index.html",
                    "Interval": 30,
                    "Timeout": 5,
                    "UnhealthyThreshold": 2,
                    "HealthyThreshold": 10
                },
                "SourceSecurityGroup": {
                    "OwnerAlias": "13************",
                    "GroupName": "Closed"
                },
                "SecurityGroups": [
                    "sg-07**************"
                ],
                "CreatedTime": "2021-03-12T19:45:29.910000+00:00",
                "Scheme": "internet-facing"
            
        }
    ]
}

If, however, you see this, where there is no VPCId key value pair, then something went wrong and the Classic Load Balancers are running in EC2-Classic. If that is the case for some reason, please reopen this, so we can investigate further.

[cloudshell-user@ip-10-0-127-234 ~]$ aws elb describe-load-balancers
{
    "LoadBalancerDescriptions": [
        {
            
            "LoadBalancerName": "Classic-CLB",
            "DNSName": "Classic-CLB-12******.us-west-2.elb.amazonaws.com",
            "CanonicalHostedZoneName": "Classic-CLB-12******.us-west-2.elb.amazonaws.com",
            "CanonicalHostedZoneNameID": "Z1H******",
            "ListenerDescriptions": [
                {
                    "Listener": {
                        "Protocol": "HTTP",
                        "LoadBalancerPort": 80,
                        "InstanceProtocol": "HTTP",
                        "InstancePort": 80
                    },
                    "PolicyNames": []
                }
            ],
            "Policies": {
                "AppCookieStickinessPolicies": [],
                "LBCookieStickinessPolicies": [],
                "OtherPolicies": []
            },
            "BackendServerDescriptions": [],
            "AvailabilityZones": [
                "us-west-2a"
            ],
            "Subnets": [],
            "Instances": [],
            "HealthCheck": {
                "Target": "HTTP:80/index.html",
                "Interval": 30,
                "Timeout": 5,
                "UnhealthyThreshold": 2,
                "HealthyThreshold": 10
            },
            "SourceSecurityGroup": {
                "OwnerAlias": "amazon-elb",
                "GroupName": "amazon-elb-sg"
            },
            "SecurityGroups": [],
            "CreatedTime": "2021-03-12T19:44:18.430000+00:00",
            "Scheme": "internet-facing"
        
            
        }
    ]
}

from ec2-classic-resource-finder.

Related Issues (19)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.