Skip to content

Instantly share code, notes, and snippets.

View ejlp12's full-sized avatar

EJLP ejlp12

  • Indonesia
View GitHub Profile
@ejlp12
ejlp12 / rds_postgresql_manual_minor_upgrade.md
Last active February 19, 2020 00:19
Best practices for manual minor upgrade of RDS ProsgreSQL

Preparation (Before Upgrade):

  1. Review the official release notes to understand the changes introduced in the new version.
  2. Find the suitable next minor version as per the upgrade path. Use following command:
    aws rds describe-db-engine-versions \
      --engine postgres \
      --engine-version 9.5.12 | \
    

grep -A 500 "ValidUpgradeTarget"| \

@ejlp12
ejlp12 / eks_security_best_practices.md
Last active February 19, 2020 00:19
AWS Recommended Security Best Practices for EKS

Preventive

@ejlp12
ejlp12 / AWSDevOpsStudyNotes
Created October 3, 2019 00:09
AWS DevOps Engineer Professional Study Notes
CI & CD:
========
2 core software development processes
CI process of automating regular code commits followed by an automated build and test process designed to highlight intergration issues early.
Additional tooling and functionality provided by Bamboo, CruiseControl, Jenkins, Go and TeamCity etc.
workflow based
CD takes the form of a workflow based process which accepts a tested software build payload from a CI server. Automates the deployment into a working QA, Pre-prod or Prod environment.
AWS CodeDeploy and CodePipeline provide CI/CD services
Elasticbeanstalk and CFN provide functionality which can be utilized by CI/CD servers.
test 
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.34.0/install.sh | bash
nvm install node
<?php include "dbinfo.inc"; ?>
<html>
<body>
<h1>Sample page</h1>
<?php
/* Connect to MySQL and select the database. */
$connection = mysqli_connect(DB_SERVER, DB_USERNAME, DB_PASSWORD);
@ejlp12
ejlp12 / aws_session_manager.md
Last active December 8, 2020 03:34
Setup Session Manager to access EC2 instance without SSH

Session Manager offers these benefits:

  • Centralized access control to instances using IAM policies
  • No open inbound ports and no need to manage bastion hosts or SSH keys
  • One-click access to instances from the console and CLI
  • Logging and auditing session activity

Reference:

@ejlp12
ejlp12 / cost
Last active July 31, 2019 00:18
cost billing tagging
https://aws.amazon.com/blogs/architecture/how-to-efficiently-extract-and-query-tagged-resources-using-the-aws-resource-tagging-api-and-s3-select-sql/
https://aws.amazon.com/blogs/enterprise-strategy/the-aws-cost-usage-report-the-next-step-on-your-cost-management-journey/
https://aws.amazon.com/blogs/apn/back-to-basics-guide-for-consolidating-aws-accounts-to-manage-costs-at-scale/
https://aws.amazon.com/blogs/mt/monitor-tag-changes-on-aws-resources-with-serverless-workflows-and-amazon-cloudwatch-events/
https://aws.amazon.com/blogs/mt/using-aws-cost-explorer-to-analyze-data-transfer-costs/
https://aws.amazon.com/blogs/apn/how-to-optimize-your-aws-workload-cost-with-capgemini-and-metricly/
@ejlp12
ejlp12 / hub_github_commandline_tool.md
Created July 8, 2019 04:17
hub: Github command line tool

https://github.com/github/hub/releases

Install:

wget https://github.com/github/hub/releases/download/v2.12.1/hub-linux-amd64-2.12.1.tgz
tar -xf hub-linux-amd64-2.12.1.tgz hub-linux-amd64-2.12.1/bin/hub -C /usr/bin --strip-components=2

Usage:

@ejlp12
ejlp12 / aws_devops_tools.md
Last active July 7, 2019 12:43
AWS DevOps Tools