Skip to content

Instantly share code, notes, and snippets.

Christian Haller christianhaller3000

Block or report user

Report or block christianhaller3000

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View index.js
const { EC2 } = require("aws-sdk");
const region = "eu-central-1";
module.exports = async () => {
const ec2 = new EC2({
region
});
const { Regions } = await ec2.describeRegions().promise();
View gist:e33de2ab23a4267eab1ae8ba819ed032
const { CloudWatchLogs, EC2 } = require("aws-sdk");
const region = "eu-central-1";
module.exports = (async () => {
try {
const ec2 = new EC2({
region
});
const { Regions } = await ec2.describeRegions().promise();
View index.js
const { SecretsManager } = require('aws-sdk');
module.exports = async () => {
const secretsManager = new SecretsManager();
const { SecretList } = await secretsManager.listSecrets().promise();
const secrets = SecretList.map(async secret => secretsManager.getSecretValue({
SecretId: secret.Name,
VersionStage: 'AWSCURRENT',
You can’t perform that action at this time.