Can you do AND/OR type queries with the AWS CLI?How do you set, clear, and toggle a single bit?Customizing health check URL for Amazon ELBCan't get https working on Elastic Load Balancer (AWS)Service discovery vs load balancingLoadbalancer cannot get a good health checkAmazon ELB session stickiness across TCP 443 connection?aws elb doesn't work - connection timed out errorHow to find all ELB that are using specific subnet in AWS vis CLI?How to check the status of loadbalancer with AWS Java Elastic Load Balancer SDKExposing a K8s TCP Service Endpoint to the Public Internet Without a Load Balancer

When moving a unique_ptr into a lambda, why is it not possible to call reset?

Is it ok for parents to kiss and romance with each other while their 2- to 8-year-old child watches?

How did the IEC decide to create kibibytes?

Tesco's Burger Relish Best Before End date number

Wouldn't putting an electronic key inside a small Faraday cage render it completely useless?

Troubling glyphs

Quotients of a ring of integers

NOLOCK or Read Uncommitted locking / latching behaviours

Function that detects repetitions

QR codes, do people use them?

Uniform initialization by tuple

Why did the frequency of the word "черт" (devil) in books increase by a few times since the October Revolution?

Why does the Misal rico de Cisneros uses the word "Qiſſa", and what is it supposed to mean? Why not "Miſſa" (Missa)?

What are some bad ways to subvert tropes?

What are the consequences for a developed nation to not accept any refugee?

Array or vector? Two dimensional array or matrix?

What was the significance of Spider-Man: Far From Home being an MCU Phase 3 film instead of a Phase 4 film?

Can we share mixing jug/beaker for developer, fixer and stop bath?

Sense of humor in your sci-fi stories

Where are the Wazirs?

How do resistors generate different heat if we make the current fixed and changed the voltage and resistance? Notice the flow of charge is constant

Is this car delivery via Ebay Motors on Craigslist a scam?

How to deal with account scam and fraud?

Attach a visible light telescope to the outside of the ISS



Can you do AND/OR type queries with the AWS CLI?


How do you set, clear, and toggle a single bit?Customizing health check URL for Amazon ELBCan't get https working on Elastic Load Balancer (AWS)Service discovery vs load balancingLoadbalancer cannot get a good health checkAmazon ELB session stickiness across TCP 443 connection?aws elb doesn't work - connection timed out errorHow to find all ELB that are using specific subnet in AWS vis CLI?How to check the status of loadbalancer with AWS Java Elastic Load Balancer SDKExposing a K8s TCP Service Endpoint to the Public Internet Without a Load Balancer






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








0















I would like to use AND OR style bitwise operatirs with an AWS CLI query.



Specifically, I would like to find all of our load balancers that are:



  1. internet facing (Scheme == "internet=facing")

  2. use https (Protocol == "HTTPS")

  3. are not limited to just TLS1.2 (PolicyNames != "ELBSecurityPolicy-TLS-1-2-2017-01")

If I do a base query for just one of the criteria, it works:



aws elb describe-load-balancers --query "LoadBalancerDescriptions[].ListenerDescriptions[?PolicyNames!='ELBSecurityPolicy-TLS-1-2-2017-01']"


If I try to add to that with one more criteria, it fails:



aws elb describe-load-balancers --query "LoadBalancerDescriptions[].ListenerDescriptions[?PolicyNames!='ELBSecurityPolicy-TLS-1-2-2017-01'], LoadBalancerDescriptions[].ListenerDescriptions[?Scheme=='internet-facing']"


Eventually, I would like for it to output the Name, DNS, and ideally, the CFT it is tied to, but only the internetfacing HTTPS ports that are not restricted to TLS1.2










share|improve this question






























    0















    I would like to use AND OR style bitwise operatirs with an AWS CLI query.



    Specifically, I would like to find all of our load balancers that are:



    1. internet facing (Scheme == "internet=facing")

    2. use https (Protocol == "HTTPS")

    3. are not limited to just TLS1.2 (PolicyNames != "ELBSecurityPolicy-TLS-1-2-2017-01")

    If I do a base query for just one of the criteria, it works:



    aws elb describe-load-balancers --query "LoadBalancerDescriptions[].ListenerDescriptions[?PolicyNames!='ELBSecurityPolicy-TLS-1-2-2017-01']"


    If I try to add to that with one more criteria, it fails:



    aws elb describe-load-balancers --query "LoadBalancerDescriptions[].ListenerDescriptions[?PolicyNames!='ELBSecurityPolicy-TLS-1-2-2017-01'], LoadBalancerDescriptions[].ListenerDescriptions[?Scheme=='internet-facing']"


    Eventually, I would like for it to output the Name, DNS, and ideally, the CFT it is tied to, but only the internetfacing HTTPS ports that are not restricted to TLS1.2










    share|improve this question


























      0












      0








      0








      I would like to use AND OR style bitwise operatirs with an AWS CLI query.



      Specifically, I would like to find all of our load balancers that are:



      1. internet facing (Scheme == "internet=facing")

      2. use https (Protocol == "HTTPS")

      3. are not limited to just TLS1.2 (PolicyNames != "ELBSecurityPolicy-TLS-1-2-2017-01")

      If I do a base query for just one of the criteria, it works:



      aws elb describe-load-balancers --query "LoadBalancerDescriptions[].ListenerDescriptions[?PolicyNames!='ELBSecurityPolicy-TLS-1-2-2017-01']"


      If I try to add to that with one more criteria, it fails:



      aws elb describe-load-balancers --query "LoadBalancerDescriptions[].ListenerDescriptions[?PolicyNames!='ELBSecurityPolicy-TLS-1-2-2017-01'], LoadBalancerDescriptions[].ListenerDescriptions[?Scheme=='internet-facing']"


      Eventually, I would like for it to output the Name, DNS, and ideally, the CFT it is tied to, but only the internetfacing HTTPS ports that are not restricted to TLS1.2










      share|improve this question
















      I would like to use AND OR style bitwise operatirs with an AWS CLI query.



      Specifically, I would like to find all of our load balancers that are:



      1. internet facing (Scheme == "internet=facing")

      2. use https (Protocol == "HTTPS")

      3. are not limited to just TLS1.2 (PolicyNames != "ELBSecurityPolicy-TLS-1-2-2017-01")

      If I do a base query for just one of the criteria, it works:



      aws elb describe-load-balancers --query "LoadBalancerDescriptions[].ListenerDescriptions[?PolicyNames!='ELBSecurityPolicy-TLS-1-2-2017-01']"


      If I try to add to that with one more criteria, it fails:



      aws elb describe-load-balancers --query "LoadBalancerDescriptions[].ListenerDescriptions[?PolicyNames!='ELBSecurityPolicy-TLS-1-2-2017-01'], LoadBalancerDescriptions[].ListenerDescriptions[?Scheme=='internet-facing']"


      Eventually, I would like for it to output the Name, DNS, and ideally, the CFT it is tied to, but only the internetfacing HTTPS ports that are not restricted to TLS1.2







      amazon-web-services command-line-interface command-line-arguments bitwise-operators






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Mar 25 at 23:10









      avariant

      2,0984 gold badges14 silver badges26 bronze badges




      2,0984 gold badges14 silver badges26 bronze badges










      asked Mar 25 at 21:03









      Adam HarrisonAdam Harrison

      1




      1






















          1 Answer
          1






          active

          oldest

          votes


















          0














          I think I figured it out:



          aws elb describe-load-balancers --query "LoadBalancerDescriptions[?Scheme=='internet-facing'].[LoadBalancerName, DNSName, ListenerDescriptions[?PolicyNames!='ELBSecurityPolicy-TLS-1-2-2017-01'], ListenerDescriptions[*].Listener[?Protocol=='HTTPS']]"


          Still not sure the best way to link it to the CFTs via a CLI command, but getting closer. :-)






          share|improve this answer
























            Your Answer






            StackExchange.ifUsing("editor", function ()
            StackExchange.using("externalEditor", function ()
            StackExchange.using("snippets", function ()
            StackExchange.snippets.init();
            );
            );
            , "code-snippets");

            StackExchange.ready(function()
            var channelOptions =
            tags: "".split(" "),
            id: "1"
            ;
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function()
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled)
            StackExchange.using("snippets", function()
            createEditor();
            );

            else
            createEditor();

            );

            function createEditor()
            StackExchange.prepareEditor(
            heartbeatType: 'answer',
            autoActivateHeartbeat: false,
            convertImagesToLinks: true,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: 10,
            bindNavPrevention: true,
            postfix: "",
            imageUploader:
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            ,
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            );



            );













            draft saved

            draft discarded


















            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55346378%2fcan-you-do-and-or-type-queries-with-the-aws-cli%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown

























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            0














            I think I figured it out:



            aws elb describe-load-balancers --query "LoadBalancerDescriptions[?Scheme=='internet-facing'].[LoadBalancerName, DNSName, ListenerDescriptions[?PolicyNames!='ELBSecurityPolicy-TLS-1-2-2017-01'], ListenerDescriptions[*].Listener[?Protocol=='HTTPS']]"


            Still not sure the best way to link it to the CFTs via a CLI command, but getting closer. :-)






            share|improve this answer





























              0














              I think I figured it out:



              aws elb describe-load-balancers --query "LoadBalancerDescriptions[?Scheme=='internet-facing'].[LoadBalancerName, DNSName, ListenerDescriptions[?PolicyNames!='ELBSecurityPolicy-TLS-1-2-2017-01'], ListenerDescriptions[*].Listener[?Protocol=='HTTPS']]"


              Still not sure the best way to link it to the CFTs via a CLI command, but getting closer. :-)






              share|improve this answer



























                0












                0








                0







                I think I figured it out:



                aws elb describe-load-balancers --query "LoadBalancerDescriptions[?Scheme=='internet-facing'].[LoadBalancerName, DNSName, ListenerDescriptions[?PolicyNames!='ELBSecurityPolicy-TLS-1-2-2017-01'], ListenerDescriptions[*].Listener[?Protocol=='HTTPS']]"


                Still not sure the best way to link it to the CFTs via a CLI command, but getting closer. :-)






                share|improve this answer















                I think I figured it out:



                aws elb describe-load-balancers --query "LoadBalancerDescriptions[?Scheme=='internet-facing'].[LoadBalancerName, DNSName, ListenerDescriptions[?PolicyNames!='ELBSecurityPolicy-TLS-1-2-2017-01'], ListenerDescriptions[*].Listener[?Protocol=='HTTPS']]"


                Still not sure the best way to link it to the CFTs via a CLI command, but getting closer. :-)







                share|improve this answer














                share|improve this answer



                share|improve this answer








                edited Mar 25 at 23:11









                John Rotenstein

                88.3k8 gold badges101 silver badges151 bronze badges




                88.3k8 gold badges101 silver badges151 bronze badges










                answered Mar 25 at 21:47









                Adam HarrisonAdam Harrison

                1




                1


















                    Got a question that you can’t ask on public Stack Overflow? Learn more about sharing private information with Stack Overflow for Teams.







                    Got a question that you can’t ask on public Stack Overflow? Learn more about sharing private information with Stack Overflow for Teams.



















                    draft saved

                    draft discarded
















































                    Thanks for contributing an answer to Stack Overflow!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid


                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.

                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55346378%2fcan-you-do-and-or-type-queries-with-the-aws-cli%23new-answer', 'question_page');

                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    Kamusi Yaliyomo Aina za kamusi | Muundo wa kamusi | Faida za kamusi | Dhima ya picha katika kamusi | Marejeo | Tazama pia | Viungo vya nje | UrambazajiKuhusu kamusiGo-SwahiliWiki-KamusiKamusi ya Kiswahili na Kiingerezakuihariri na kuongeza habari

                    Swift 4 - func physicsWorld not invoked on collision? The Next CEO of Stack OverflowHow to call Objective-C code from Swift#ifdef replacement in the Swift language@selector() in Swift?#pragma mark in Swift?Swift for loop: for index, element in array?dispatch_after - GCD in Swift?Swift Beta performance: sorting arraysSplit a String into an array in Swift?The use of Swift 3 @objc inference in Swift 4 mode is deprecated?How to optimize UITableViewCell, because my UITableView lags

                    Access current req object everywhere in Node.js ExpressWhy are global variables considered bad practice? (node.js)Using req & res across functionsHow do I get the path to the current script with Node.js?What is Node.js' Connect, Express and “middleware”?Node.js w/ express error handling in callbackHow to access the GET parameters after “?” in Express?Modify Node.js req object parametersAccess “app” variable inside of ExpressJS/ConnectJS middleware?Node.js Express app - request objectAngular Http Module considered middleware?Session variables in ExpressJSAdd properties to the req object in expressjs with Typescript