Skip to content

Instantly share code, notes, and snippets.

{
"detail-type": [
"AWS API Call via CloudTrail"
],
"detail": {
"eventSource": [
"s3.amazonaws.com"
],
"eventName": [
"PutBucketAcl"
Authentication-Results: some.smtpserver.com (amavisd-new); dkim=neutral
reason="invalid (public key: DNS error: )" header.d=evernote.com
header.b=sMMc1kxr; dkim=pass (1024-bit key) header.d=evernote.com
header.b=AX3A2mDN
$ErrorActionPreference = 'SilentlyContinue'
$vms = Get-VelosVM
$array = @()
$taskarray = @()
$vms | ForEach-Object {
$vm = $_
$tasks = $vm.ActiveTasks
if ($tasks){
$t = ''
{
"Version":"2012-10-17",
"Statement":[
{
"Action":[
"s3:ListBucket",
"s3:GetBucketLocation",
"s3:ListBucketMultipartUploads"
],
"Resource":[
{
"Version": "2012-10-17",
"Statement": [
{
"Action": [
"acm:ListCertificates",
"athena:List*",
"aws-marketplace:ViewSubscriptions",
"autoscaling:Describe*",
"batch:ListJobs",
{
"Sid": "sqsdelete",
"Effect": "Allow",
"Action": [
"sqs:Delete*"
],
"Resource": [
"*"
],
"Condition": {