SELECT pid, age(clock_timestamp(), query_start), usename, state, query
FROM pg_stat_activity
WHERE query != '<IDLE>' AND query NOT ILIKE '%pg_stat_activity%'
ORDER BY query_start desc;
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| IP=$(curl ifconfig.me) | |
| echo "ip is $IP" | |
| MSG="{ | |
| \"Changes\": [ | |
| { | |
| \"Action\": \"UPSERT\", | |
| \"ResourceRecordSet\": { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| terraform { | |
| required_providers { | |
| http = { | |
| source = "terraform-aws-modules/http" | |
| version = "2.4.1" | |
| } | |
| } | |
| required_version = ">= 0.13" | |
| } |
OlderNewer