Skip to content

Instantly share code, notes, and snippets.

@Zohorul
Zohorul / README.md
Created December 7, 2018 22:48 — forked from leonardofed/README.md
A curated list of AWS resources to prepare for the AWS Certifications


A curated list of AWS resources to prepare for the AWS Certifications

A curated list of awesome AWS resources you need to prepare for the all 5 AWS Certifications. This gist will include: open source repos, blogs & blogposts, ebooks, PDF, whitepapers, video courses, free lecture, slides, sample test and many other resources.


AWS Systems Manager lets you remotely and securely manage the configuration of your managed instances. It helps you automate management tasks.

  • Create IAM Role - Assign Permissions
  • Create EC2 & Assign IAM Role - "AmazonEC2RoleforSSM" role to an Amazon EC2 instance with "AmazonSSMFullAccess" Permissions
  • Bootstrap with SSM
  • Run Command

User-Data:

#!/bin/bash
cd /tmp
@Zohorul
Zohorul / aws_ses_lambda.js
Created January 22, 2019 04:28 — forked from diegofcornejo/aws_ses_lambda.js
Send email with AWS SES in Lambda
"use strict";
const AWS = require('aws-sdk');
const SES = new AWS.SES({ apiVersion: '2010-12-01' });
module.exports = {
send: function() {
var params = {
Destination: {
ToAddresses: [
"[email protected]"
]
@Zohorul
Zohorul / aws_ses_lambda.js
Created January 22, 2019 04:28 — forked from diegofcornejo/aws_ses_lambda.js
Send email with AWS SES in Lambda
"use strict";
const AWS = require('aws-sdk');
const SES = new AWS.SES({ apiVersion: '2010-12-01' });
module.exports = {
send: function() {
var params = {
Destination: {
ToAddresses: [
"[email protected]"
]
@Zohorul
Zohorul / installAndConfigureTomcat8.sh
Created October 10, 2019 01:51
Install and configure Tomcat8 on an Amazon Linux AMI using Java OpenJDK 1.8 that starts on reboot.
#!/bin/bash
mkdir /opt/tomcat
yum update -y
yum install java-1.8.0-openjdk-devel httpd24 git -y
service httpd start
chkconfig httpd on
yum remove java-1.7.0-openjdk -y
# calling the version may ensure that java recognizes 1.8 as the new defaut
java -version
echo "JAVA_HOME=/usr/lib/jvm/java-1.8.0-openjdk/jre" | \
@Zohorul
Zohorul / installAndConfigureTomcat8.sh
Created October 10, 2019 01:51
Install and configure Tomcat8 on an Amazon Linux AMI using Java OpenJDK 1.8 that starts on reboot.
#!/bin/bash
mkdir /opt/tomcat
yum update -y
yum install java-1.8.0-openjdk-devel httpd24 git -y
service httpd start
chkconfig httpd on
yum remove java-1.7.0-openjdk -y
# calling the version may ensure that java recognizes 1.8 as the new defaut
java -version
echo "JAVA_HOME=/usr/lib/jvm/java-1.8.0-openjdk/jre" | \
@Zohorul
Zohorul / setting-up-lamp-ec2.md
Created February 10, 2020 23:38 — forked from keithweaver/setting-up-lamp-ec2.md
Setting up a LAMP stack on Amazon Web Services (AWS) EC2

Setting Up EC2

  1. Sign into AWS
  2. Open EC2
  3. Click Instances on Left Side
  4. Click "Launch Instance"
  5. Select "Amazon Linux AMI 2016.09.1 (HVM), SSD Volume Type"
  6. Select Free Tier
  7. Click review and launch
  8. Press Launch
@Zohorul
Zohorul / Splunk.md
Created April 14, 2020 18:41 — forked from sfloess/Splunk.md
Splunk Tips and Tricks

Splunk

Helpful tips and tricks for Splunk.

Formatting

Splunk uses the | ("or bar") as a means to break up statements. Instead of using one long string of statements, consider deliminating | [statement] on seperate lines.

Example

@Zohorul
Zohorul / cheatsheet.md
Created April 14, 2020 18:43 — forked from domanchi/cheatsheet.md
[splunk cheatsheet] Splunk snippets, because their syntax is so confusing. #splunk

Splunk Queries

I really don't like Splunk documentation. Why is it so hard to find out how to do a certain action? So this is a cheatsheet that I constructed to help me quickly gain knowledge that I need.

Analysis

Events over time

index="my_log"