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;
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:
- internet facing (Scheme == "internet=facing")
- use https (Protocol == "HTTPS")
- 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
add a comment |
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:
- internet facing (Scheme == "internet=facing")
- use https (Protocol == "HTTPS")
- 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
add a comment |
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:
- internet facing (Scheme == "internet=facing")
- use https (Protocol == "HTTPS")
- 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
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:
- internet facing (Scheme == "internet=facing")
- use https (Protocol == "HTTPS")
- 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
amazon-web-services command-line-interface command-line-arguments bitwise-operators
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
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
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. :-)
add a comment |
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
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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. :-)
add a comment |
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. :-)
add a comment |
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. :-)
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. :-)
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
add a comment |
add a comment |
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.
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.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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