Recently, I went to AWS re:Invent 2018 for the second time. My first time was back in 2014 (when AWS Lambda was introduced). This time I decided to go to Las Vegas with my wife. So I did purchased a guest pass to AWS re:Play event. re:play itself was great. Highly recommend to attend itContinue reading “AWS re:Invent Feature Request”
Tag Archives: AWS
Amazon RDS Now Supports T2 Instances
That is good news. T2 instances CPU credits is really great feature introduced 2 months ago for EC2. Amazon RDS Now Supports T2 Instances At the same time the price for T2 RDS instances is twice less then for the previous generation. T2.micro EC2 + T2.micro RDS are good if you are thinking about web appContinue reading “Amazon RDS Now Supports T2 Instances”
#PowerShell: Register AWS EC2 instances in Amazon Route53 (new way)
Amazon Route 53 is a highly available and scalable Domain Name System (DNS) web service. Just in case – Amazon EC2 I use this script https://github.com/konstantinvlasenko/cloud/blob/master/Register-CNAME.ps1 to provide meaningful names for them. Simple usage: $config = @{ DomainName = ‘mylab.com’ } $name = “www.$($config.DomainName)” # get instances $instance = (Get-EC2Instance $InstanceId).RunningInstance # update R53 .\Register-CNAME.ps1Continue reading “#PowerShell: Register AWS EC2 instances in Amazon Route53 (new way)”
Apply GeoTrust certificate to AWS ELB
Here is the tool which I used to verify correctness of my AWS ELB SSL configuration. Certificate Name – put here whatever you want Private Key – copy and past content of server.key file Public Key Certificate – copy and paste content of your_site_name_ee.cer file This will be enough to pass validation by the tool.Continue reading “Apply GeoTrust certificate to AWS ELB”
Backup you on-prem/local #PostgreSQL database to cloud #AWS #RDS snapshot
#PostgreSQL #MySQL backup for $0.026 + $0.125 per GB-month Total costs of the backup operation: $0.026 + $0.125 per GB-month Script below will do the following steps: create PostgresSQL AWS RDS t1.micro instance wait till instance started by using aws rds describe-db-instances get AWS RDS instance address copy database create AWS RDS instance snapshot andContinue reading “Backup you on-prem/local #PostgreSQL database to cloud #AWS #RDS snapshot”
Restore #AWS RDS instance from a database snapshot by using AWS CLI
The AWS Command Line Interface is a unified tool to manage your AWS services. I am using AWS RDS PostgreSQL for my application. I don’t need to run this application 24/7/365. So I have the ability to stop periodically my instances to save some money in my pocket. Nobody wants to do repeated tasks manually.Continue reading “Restore #AWS RDS instance from a database snapshot by using AWS CLI”
How to relaunch CloudInit script
sudo rm /var/lib/cloud/sem/* sudo /etc/init.d/cloud-init start
Find region from within EC2 instance by #PowerShell
(ConvertFrom-Json (Invoke-WebRequest -Uri http://169.254.169.254/latest/dynamic/instance-identity/document -UseBasicParsing).Content).region
AWS EC2 Windows current spot price by PowerShell
Get-EC2SpotPriceHistory -ProductDescription Windows -InstanceType m1.large, cc1.4xlarge -s (Get-Date -format s) | sort SpotPrice | format-list
PowerShell: Register AWS EC2 instances in AWS R53
UPDATE: #PowerShell: Register AWS EC2 instances in Amazon Route 53 (new way) Suppose you have a variable $lab: $lab = @{id=’ami-7300091a’; name=’1.dc.mylab.com’; type=’m1.small’; maxbid=’0.02′; CNAME=’ec2-54-000-117-7.compute-1.amazonaws.com’}, @{id=’ami-49000e20′; name=’1.sql.mylab.com’; type=’cc1.4xlarge’; maxbid=’0.09′; CNAME=’ec2-184-73-000-182.compute-1.amazonaws.com’} Let’s update AWS R53 entries by using instances CNAME: $zoneId = ‘ZB00X5FI00YBB’ foreach($computer in $lab){ “[$($computer.name)]`t[R53] update… ” | Out-Default $result = Get-R53ResourceRecordSet -HostedZoneId $zoneId -StartRecordName $computer.name -MaxItems 1Continue reading “PowerShell: Register AWS EC2 instances in AWS R53”