Error establishing a database connection AWS EC2 WordPress MYSQL

Visits: 18117Error establishing a database connection while using WordPress installed on AWS EC2 Using the Free tier EC2 server on Amazon with an active wordpress server requires a bit of work, namely that you need a script that will restart the mysqld service. However, it really help to add a swap file, not installed by default …

Can’t delete IAM role because policies are attached · Harder to remove IAM than to create it

Visits: 725I am trying to uninstall a role , policy and profile in AWS command line. I made a script that creates the role, etc but need to make an uninstall script. ~/.local/bin/aws iam create-role –role-name CharmingMachineBashRole –assume-role-policy-document file:///usr/local/sbin/AllowSecGroupCreate.json ~/.local/bin/aws iam attach-role-policy –role-name CharmingMachineBashRole –policy-arn arn:aws:iam::aws:policy/AmazonEC2FullAccess ~/.local/bin/aws iam create-instance-profile –instance-profile-name CharmingMachineBash-Instance-Profile ~/.local/bin/aws iam add-role-to-instance-profile –role-name …

This sounds really great and affordable. AquaSec Security Has On-Demand Scanner for Container Images on AWSMarketplace

Visits: 1030For 29 cents you can find nasty stuff on your Images. Using the marketplace scanner, everything from Trojans to forgotten keys, and Vulnerabilities  were found. I can’t wait to try this. I don’t know if I know the folks from this biz, but pray for their success. Aqua’s On Demand Vulnerability Scanner – How it …

Recommended Network ACL Rules for Your #VPC – @Amazon Virtual Private Cloud – Be sure to use correct Region

Use NACL on AWS VPC as a firewall

Visits: 708Easy way to block simple attacks from a single IP address or a a few on the same network. Until I automate the a block script, I did this manually, but first I was connected to the wrong region. There are really intelligent hacks, then there are medium intelegence hacks, and there are just …

ec2-register – Client.InvalidManifest: Invalid block device mapping: Invalid device name ‘/dev/xvda’

Visits: 2559ec2-register give: Client.InvalidManifest: Invalid block device mapping: Invalid device name ‘/dev/xvda’ The solution was found at https://forums.aws.amazon.com/message.jspa?messageID=243692 We have pre-configured MongoDB with XFS as well as Passworded Security. To install go to AWS – Secure MongoDB 3.4 on XFS for superior performance I mostly followed instructions at: http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/creating-an-ami-instance-store.html ec2-register charming-amis/charming-LAMP-swap/image.manifest.xml -n charming-LAMP-swap-ami –virtualization-type hvm  –region us-west-1 …