25 articles AWS Page 2 / 3

Ubuntu Install AWS Cloudformation tools cfn-signal command

mkdir aws-cfn-bootstrap-latest curl https://s3.amazonaws.com/cloudformation-examples/aws-cfn-bootstrap-latest.tar.gz | tar xz -C aws-cfn-bootstrap-latest –strip-components 1 easy_install aws-cfn-bootstrap-latest Usage: /usr/local/bin/cfn-init –stack ${AWS::StackName} –resource AutoScalingGroup –region ${AWS::Region} /usr/local/bin/cfn-signal –exit-code 0 –stack ${AWS::StackName} –resource AutoScalingGroup –region ${AWS::Region}  

Command to make EBS volume available in EC2 Instance

  #view available disk devices [root@ip-172-31-21-110 lib]# lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT xvda 202:0 0 16G 0 disk └─xvda1 202:1 0 16G 0 part / xvdf 202:80 0 4G 0 disk #Check for filesystem exist [root@ip-172-31-21-110 lib]# file -s /dev/xvdf /dev/xvdf: data #Create file systems ext4 [root@ip-172-31-21-110 lib]# mkfs -t ext4 /dev/xvdf…

Running MySQL on Amazon EC2 with EBS (Elastic Block Store)

https://aws.amazon.com/articles/1663 Configuring MySQL to use the EBS volume Now that we have an EBS volume mounted on the instance with a good file system, let’s put the MySQL database on that volume and tell MySQL where it is. Stop the MySQL server. sudo /etc/init.d/mysql stop Move the existing database files to the EBS volume. Point…

Extending a Linux File System after Resizing the Volume

[ec2-user@ip-172-31-21-110 ~]$ df -h Filesystem Size Used Avail Use% Mounted on /dev/xvda1 7.8G 7.7G 48M 100% / devtmpfs 993M 56K 992M 1% /dev tmpfs 1001M 0 1001M 0% /dev/shm [ec2-user@ip-172-31-21-110 ~]$ sudo resize2fs /dev/xvda1 resize2fs 1.42.12 (29-Aug-2014) Filesystem at /dev/xvda1 is mounted on /; on-line resizing required old_desc_blocks = 1, new_desc_blocks = 1 The filesystem…

Top ELB health and performance metrics

Part 1 – https://www.datadoghq.com/blog/top-elb-health-and-performance-metrics Request count Surge queue length and spillover count ELB 5xx errors Backend instances health status Backend latency Part 2 – https://www.datadoghq.com/blog/how-to-collect-aws-elb-metrics Part 3 – https://www.datadoghq.com/blog/monitor-elb-performance-with-datadog

Integrating AWS CodeCommit with Jenkins

https://aws.amazon.com/blogs/devops/integrating-aws-codecommit-with-jenkins/ 1. Create an IAM user name ‘jenkins’ 2. Save the access key ID and the secret key for jenkins user 3. Attach the managed policy named AWSCodeCommitPowerUser to the IAM user you created. 4. Configure the AWS CLI. cd ~jenkins sudo -u jenkins aws configure 5. Configure Git to use IAM credentials and an…

Install Jenkins on Amazon Linux EC2 Instance

1. Login to your Amazon Linux instance. 2. Become root using ‘sudo su -‘ command. 3. Update your repositories #yum update 4. Get Jenkins repository #wget -O /etc/yum.repos.d/jenkins.repo http://pkg.jenkins-ci.org/redhat-stable/jenkins.repo 5. Get Jenkins repository key   #rpm –import http://pkg.jenkins-ci.org/redhat-stable/jenkins-ci.org.key 6. Install Jenkins package  #yum install jenkins 7. Start Jenkins #service jenkins start 8. Start automatically at…