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
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) { |
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
param( | |
[string]$Region = "us-east-1", | |
[int]$TimeoutSeconds = 300 # default 5 minutes | |
) | |
Write-Host "=== Lambda Provisioned Concurrency Reset Script ===" |
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
@echo off | |
setlocal enabledelayedexpansion | |
:: =============================== | |
:: Config | |
:: =============================== |
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
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**. |
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
package main | |
import ( | |
"fmt" | |
"log" | |
"net/http" | |
"net/url" | |
"github.com/koltyakov/gosip" | |
"github.com/koltyakov/gosip/api" |
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
package main | |
import ( | |
"context" | |
"encoding/json" | |
"fmt" | |
"io" | |
"log" | |
"net/http" | |
"net/url" |