Skip to content

Instantly share code, notes, and snippets.

View ramesh-balda's full-sized avatar
🏠
Working from home

Ramesh Balda ramesh-balda

🏠
Working from home
View GitHub Profile
@ramesh-balda
ramesh-balda / Restart.ps1
Created August 19, 2025 13:16
Restart AWS stuff
while ($true) {
Write-Host "`n=== Main Menu ==="
Write-Host "1. Generate AWS Credentials"
Write-Host "2. Restart Lambda Provisioned Concurrency"
Write-Host "3. Restart ECS Services"
Write-Host "4. Exit"
$choice = Read-Host "Enter choice (1, 2, 3, or 4)"
switch ($choice) {
@ramesh-balda
ramesh-balda / Sample.ps1
Created August 18, 2025 16:48
Powershell
param(
[string]$Region = "us-east-1",
[int]$TimeoutSeconds = 300 # default 5 minutes
)
Write-Host "=== Lambda Provisioned Concurrency Reset Script ==="
@echo off
setlocal enabledelayedexpansion
:: ===============================
:: Config
:: ===============================
11 To perform actions (listing & restarting Lambda functions and ECS services) **after a certificate is updated in AWS Secrets Manager**, you can approach it in three different ways as you’ve outlined.
---
## ✅ Objective
**When a certificate in AWS Secrets Manager is updated:**
1. **List and restart relevant Lambda functions and ECS services**.
package main
import (
"fmt"
"log"
"net/http"
"net/url"
"github.com/koltyakov/gosip"
"github.com/koltyakov/gosip/api"
package main
import (
"context"
"encoding/json"
"fmt"
"io"
"log"
"net/http"
"net/url"