Change AutoScaling Group to 0
loading...
loading...
Change AutoScaling Group to 0
Recently restricted an AWS Elastic Beanstalk App so it could only be accessed through a specific DNS host name which was routed through Cloudflare for Security
This parameter is located in archive.xml in \site_content\archive.xml
<binding protocol=”http” bindingInformation=”*:80:subdomain.domain.com” sslFlags=”0″ MSDeploy.sslFlags=”1″ />
When you manipulate items in windows explorer from AWS s3 bucket , it creates folders which then get uploaded to AWS as 0 byte objects.
You can view these in powershell by using
Get-S3Object -BucketName “XXXXXX” -keyprefix “documents/XXXXX/XXXXX/” | where-object {$_.Size -eq 0 -and $_.Key -like “XXXX/XXXX/XXXX/12*”}
To remove ( You can only items 1000 at a time ) you can use the below
Remove-S3Object -bucketname “XXXXXX” -KeyCollection (Get-S3Object -BucketName “XXXXXX” -keyprefix “documents/XXXXX/XXXXX/” | where-object {$_.Size -eq 0 -and $_.Key -like “XXXX/XXXX/XXXX/12*”}| select -ExpandProperty Key)
You can use CloudWatch Alert per below with SNS Topic
https://docs.aws.amazon.com/AmazonCloudWatch/latest/events/EventTypes.html#ebs-event-types
http://docs.aws.amazon.com/organizations/latest/userguide/orgs_tutorials_cwe.html