Saturday, May 7, 2022
Wednesday, April 27, 2022
SSM - Session Manager - System - SSM Port Forwarding, Bastionless
BastionLess VM , VM is in private Subnet with private IP with access to NAT gateway
NAT Gateway should have a route to Internet G/W
- https://aws.amazon.com/premiumsupport/knowledge-center/ec2-systems-manager-vpc-endpoints/
- https://docs.aws.amazon.com/systems-manager/latest/userguide/systems-manager-setting-up.html
- https://docs.aws.amazon.com/systems-manager/latest/userguide/ssm-agent-status-and-restart.html
- https://stackoverflow.com/questions/66553148/aws-ssm-sessions-manager-doesnt-work-for-private-instances-with-nacl-configured/66764428
- https://repost.aws/questions/QU23KNaILoROOawjDtsvGUwA/unable-to-use-session-manager-on-ec-2-instances-in-a-private-subnet-with-ssm-vpc-endpoint
- Verify that SSM Agent is installed on the instance.
- Create an AWS Identity and Access Management (IAM) instance profile for Systems Manager. You can create a new role, or add the needed permissions to an existing role.
- Attach the IAM role to your private EC2 instance.
- Make sure on respective Bastionless VM, you can reach following VPC Endpoints - curl
Make sure that you have specified all VPC endpoint for SSM:
- com.amazonaws.region.ssm: The endpoint for the Systems Manager service.
- com.amazonaws.region.ec2messages: Systems Manager uses this endpoint to make calls from SSM Agent to the Systems Manager service.
- com.amazonaws.region.ec2: If you're using Systems Manager to create VSS-enabled snapshots, you need to ensure that you have an endpoint to the EC2 service. Without the EC2 endpoint defined, a call to enumerate attached EBS volumes fails, which causes the Systems Manager command to fail. - com.amazonaws.region.ssmmessages: This endpoint is required only if you are connecting to your instances through a secure data channel using Session Manager. For more information, see AWS Systems Manager Session Manager.
Thursday, March 31, 2022
R-LANE , Lift/Shift, Re-platform, Modernization
"
Migration" - Moving Enterprise Workload from On-Premise DataCentre to Public/Private Clouds
"Modernize" - Refactor Monolith Codebase and Expose APIS on top of that new refactored code deployed in cloud
"Build Native" - From Zero - Re-design - Microservices.
https://www.youtube.com/watch?v=yWByEVB0VJE&list=WL&index=57
----------------------------------------------------------------------
6R's - https://www.youtube.com/watch?v=AmyuEIux6xs&list=WL&index=56
Rehost - IAAS - Lift and Shift - Forklift - Very Early - Low Resistance Migration Strategy
Replatform - PAAS - Elastic BeanStalk - Minor changes
Repurchase - Ending License - Properitiary - CRM
Refactor - Re-architect - Recoding - Decompose Monolith
Retain - Not Ready to migrate - legacy/critical -
Retire - Not needed - Turn off
----------------------------------------------------------------------
https://www.youtube.com/watch?v=68z4XZTpSIA&list=WL&index=62
Assess
Migrate
Optimise
Secure and Manage
VFunction
https://www.youtube.com/watch?v=y1Jt3d3C0ZU
- JVM - "Dynamic and Static Analysis"
Data Collection and Learning -> VFunction Agents - Analyse JVM -> Coverage
Identify Userflows, Boundaries of Services
Algorithms - Entrpoint of Services
- "Interactive Platform"
Architect gets an interactive platform which is result of Dynamic/Static Analysis done by agents
RIch info about Services and allows Architect to merge/Split Services
System Creates based on Architect's input - Specification of Service which is a JSON File
- "Code Generation"
JSON Entrypoint, Parameters, Classes + Scans Orginal Code => Automation Engine
creates a new project with well defined APIs
Thursday, March 10, 2022
Configuration Management Tool - IAC - Ansible vs Chef vs Puppet vs Saltstack
https://www.youtube.com/watch?v=h4hWzlSqF18
https://www.edureka.co/blog/chef-vs-puppet-vs-ansible-vs-saltstack/
https://www.veritis.com/blog/chef-vs-puppet-vs-ansible-comparison-of-devops-management-tools/
Chef vs Puppet vs Ansible vs SaltStack Configuration Management Tools Comparison
Tuesday, January 25, 2022
EKCTL - Command Sheet - Cheat Code
https://eksctl.io/usage/unowned-clusters/
- Create:
eksctl create nodegroup
(see note below)eksctl create fargateprofile
eksctl create iamserviceaccount
eksctl create iamidentitymapping
- Get:
eksctl get clusters/cluster
eksctl get nodegroup
eksctl get labels
- Delete:
eksctl delete cluster
eksctl delete nodegroup
eksctl delete fargateprofile
eksctl delete iamserviceaccount
eksctl delete iamidentitymapping
- Upgrade:
eksctl upgrade cluster
eksctl upgrade nodegroup
- Set/Unset:
eksctl set labels
eksctl unset labels
- Scale:
eksctl scale nodegroup
- Drain:
eksctl drain nodegroup
- Enable:
eksctl enable profile
eksctl enable repo
- Utils:
eksctl utils associate-iam-oidc-provider
eksctl utils describe-stacks
eksctl utils install-vpc-controllers
eksctl utils nodegroup-health
eksctl utils set-public-access-cidrs
eksctl utils update-cluster-endpoints
eksctl utils update-cluster-logging
eksctl utils write-kubeconfig
eksctl utils update-coredns
eksctl utils update-aws-node
eksctl utils update-kube-proxy
Azure - Pipeline - Add Approver for Stage
https://learn.microsoft.com/en-us/azure/devops/pipelines/process/approvals?view=azure-devops&tabs=check-pass
-
https://www.baeldung.com/spring-properties-file-outside-jar https://docs.spring.io/spring-boot/docs/current/reference/html/spring-boot-featu...
-
https://learn.microsoft.com/en-us/azure/devops/pipelines/process/approvals?view=azure-devops&tabs=check-pass
-
The decision was made to block such external HTTP repositories by default https://stackoverflow.com/questions/66980047/maven-build-failure-d...