Skip to content

Instantly share code, notes, and snippets.

View Veetaha's full-sized avatar
🦀
Debugging a crime

Vitalii Kryvenko Veetaha

🦀
Debugging a crime
View GitHub Profile
@Veetaha
Veetaha / gist:20267a36df1aca08e367566f0c68a97c
Created September 24, 2024 14:21
elastio-network-test.sh
#!/usr/bin/env bash
set -euxo pipefail
# AWS endpoints
curl -IL https://iam.amazonaws.com
curl -IL https://sts.us-east-1.amazonaws.com
curl -IL https://s3.us-east-1.amazonaws.com
curl -IL https://lambda.us-east-1.amazonaws.com
curl -IL https://batch.us-east-1.amazonaws.com
@Veetaha
Veetaha / aws-gc.ps1
Last active October 29, 2024 13:16
Scripts to clean up AWS resources deployed by Elastio. Use `sh` version if you are on a UNIX-like OS. Use the `ps1` version if you are on Windows.
# Install aws-gc
Invoke-WebRequest "https://dl.cloudsmith.io/public/elastio/public/raw/versions/latest/aws-gc_x86_64-pc-windows-msvc.zip" -OutFile "aws-gc.zip";
Expand-Archive -Force "aws-gc.zip";
Move-Item -Force "./aws-gc/aws-gc.exe" "./aws-gc.exe";
Remove-Item -Force "./aws-gc", "./aws-gc.zip";
# Discover Elastio resources and run the deletion. You'll need to type "yes" to confirm the deletion
./aws-gc.exe destroy --tag elastio:resource=true --id-pattern elastio
2022-04-23T15:24:58.3603142Z Deploying region-level stack. This might take a couple of minutes...
2022-04-23T15:27:39.3583660Z Initializing modules...
2022-04-23T15:27:39.3596271Z - region in ../modules/region
2022-04-23T15:27:39.3599237Z - region.account_level_outputs in ../modules/account_level_outputs
2022-04-23T15:27:39.3609867Z - region.inner in ../modules/region/inner
2022-04-23T15:27:39.3620349Z - region.inner.bg_jobs in ../modules/bg_jobs/region
2022-04-23T15:27:39.3653853Z - region.inner.bg_jobs.job_defs in ../modules/bg_jobs/region/job_defs
2022-04-23T15:27:39.3654888Z - region.inner.bg_jobs.job_defs.version in ../modules/version
2022-04-23T15:27:39.3670168Z - region.inner.bg_jobs.service in ../modules/aws_lambda_rust
2022-04-23T15:27:39.3671295Z - region.inner.bg_jobs.service.version in ../modules/version