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
let AWS = require('aws-sdk'); | |
let wellarchitected = new AWS.WellArchitected(); | |
AWS.config.update({ region: process.env.AWS_REGION }); | |
async function getWorkloads() { | |
let params = { | |
MaxResults: '50', | |
}; | |
return wellarchitected.listWorkloads(params).promise() |
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
{ | |
"Version": "2012-10-17", | |
"Statement": [ | |
{ | |
"Sid": "CloudShellUser", | |
"Effect": "Allow", | |
"Action": [ | |
"cloudshell:*" | |
], | |
"Resource": "*" |
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
{ | |
"Version": "2020-06-01", | |
"Statement": [ | |
{ | |
"Sid": "DenyAMIsExceptFromAccount", | |
"Effect": "Deny", | |
"Action": "ec2:RunInstances", | |
"Resource": "arn:aws:ec2:eu-west-1::image/{ami_id}", | |
"Condition": { | |
"StringNotEquals": { |