Skip to content

Instantly share code, notes, and snippets.

View johnder's full-sized avatar

John Deragon johnder

View GitHub Profile
east-1 git:(compliance-terraform-v2) terraform plan
│ Error: Duplicate provider configuration
│ on api_gateway_logging_check.tf line 1:
│ 1: provider "aws" {
│ A default (non-aliased) provider configuration for "aws" was already given at api_gateway_cache_check.tf:1,1-15. If multiple
│ configurations are required, set the "alias" argument for alternative configurations.
@johnder
johnder / get tlsalb.sh
Last active April 10, 2022 15:49
get alb tls policies
#!/bin/bash
export AWS_PAGER="". #this is needed to prevent pagenation of the output so its one continuous list
# function to lList application load balancers by ARN
load_balancer_arns=$(aws elbv2 describe-load-balancers \
--query 'sort_by(LoadBalancers[?contains(LoadBalancerArn,`:loadbalancer/app/`)],&LoadBalancerArn)[].[LoadBalancerArn]' \
--output text)
# For each ALB show listeners with ther attachged ssl policy name SSL policy

Keybase proof

I hereby claim:

  • I am johnder on github.
  • I am johnder (https://keybase.io/johnder) on keybase.
  • I have a public key whose fingerprint is 9F02 63A7 CB6F B796 FD26 17B7 6F28 62C5 0CFD F6F5

To claim this, I am signing this object:

### Keybase proof
I hereby claim:
* I am johnder on github.
* I am johnder (https://keybase.io/johnder) on keybase.
* I have a public key whose fingerprint is D35F CC0B FE16 6AD8 C4C5 B80A 5601 2EAA 2A4B 9D5F
To claim this, I am signing this object:
### Keybase proof
I hereby claim:
* I am johnder on github.
* I am johnder (https://keybase.io/johnder) on keybase.
* I have a public key whose fingerprint is F431 3723 2E42 1125 8D3B 5A85 BDDA 7EFE 7BDD A67A
To claim this, I am signing this object:
@johnder
johnder / gist:6186223
Last active December 20, 2015 19:49
check
-- default.rb attributes:
# Checks for manager (iad-encmanager103)
default[:encoders][:talk][:manager][:monitor_scripts] = [
"talk_scanner_check",
"talk_add_new_check",
"talk_manager_check"
]
-- recipe:
select count(RecipeNum), Seminarid from recipe where RecipeNum > 5000
group by SeminarId order by Seminarid
select count(distinct RecipeNum), Seminarid from recipe where RecipeNum > 5000
group by SeminarId order by Seminarid