Friday, August 20, 2021

Elastic IP Address : Delete /Disassociate

https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/elastic-ip-addresses-eip.html


https://docs.aws.amazon.com/vpc/latest/userguide/VPC_Scenario4.html


1st Disassociate Elastic IP Address

then Release Elastic IP Address


if Elastic IP is not bound, its chargeable

AWS Routing : 101

https://medium.com/@mda590/aws-routing-101-67879d23014d


https://docs.aws.amazon.com/vpc/latest/userguide/VPC_Scenario4.html



https://karanawsbucket.s3.us-east-1.amazonaws.com/Documents/AWS%20Routing%20101.%20Introduction%20_%20by%20Matt%20Adorjan%20_%20Medium.pdf

User Data :AWS : 80 : WebPort

https://gist.github.com/nktstudios/fcaf50c30f4ce50790876a3fe5dd8ac7


 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
#!/bin/bash

# update the machine
yum update -y

# install http
yum install -y httpd.x86_64

# start the service
systemctl start httpd.service

# enable service across reboots
systemctl enable httpd.service

# create the html page to render
echo "<h1>Hello World from NKT Studios!</h1>" >/var/www/html/index.html

AWS Certificate Manager : ACM : Public and Private CA Certificate

https://www.youtube.com/watch?v=bWPTq8z1vFY

https://docs.aws.amazon.com/acm/latest/userguide/gs-acm-request-public.html

https://gist.github.com/nktstudios/fcaf50c30f4ce50790876a3fe5dd8ac7

https://docs.aws.amazon.com/acm/latest/userguide/gs-acm-request-private.html

https://docs.aws.amazon.com/acm/latest/userguide/acm-overview.html

https://docs.aws.amazon.com/acm/latest/userguide/gs-acm-request-public.html

https://aws.amazon.com/certificate-manager/faqs/

https://docs.aws.amazon.com/acm/latest/userguide/acm-services.html

Thursday, August 19, 2021

AWS : Cloudwatch : Push EC2 Logs via "Cloudwatch Agent" to Cloudwatch

https://www.youtube.com/watch?v=ZCHwJLqPLj8

https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/QuickStartEC2Instance.html

https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/AgentReference.html

Other Urls

https://cloudacademy.com/blog/centralized-log-management-with-aws-cloudwatch-part-1-of-3/

https://medium.com/tensult/to-send-linux-logs-to-aws-cloudwatch-17b3ea5f4863

https://www.strongdm.com/docs/installation/configure-logging/aws-cloudwatch


Edit    /etc/awslogs/awslog.conf

-----------------------------------------------------------------

[/var/log/messages]

datetime_format = %b %d %H:%M:%S

file = /var/log/messages

buffer_duration = 5000

log_stream_name = {instance_id}

initial_position = start_of_file

log_group_name = /var/log/messages


[/ActorLocatorAPI/logs]

datetime_format = %b %d %H:%M:%S

file = /tmp/logs/contoso-actorLocator.log

buffer_duration = 500

log_stream_name = {instance_id}

initial_position = start_of_file

log_group_name = /ActorLocatorAPI/logs

-----------------------------------------------------------------

You can send On Premise M/C as well with "Coudwatch Agent"


sudo yum install -y awslogs 


Edit file /etc/awslogs/awscli.conf    and change your AWS Region.

Edit file /etc/awslogs/awslogs.conf    and verify following lines                                                     Here You specify from where to read/What to read and push to Cloudwatch

AWS : CloudFormation

AWS CloudFormation Tutorial | AWS CloudFormation Demo | AWS Tutorial | AWS Training | Edureka - YouTube

Azure - Pipeline - Add Approver for Stage

https://learn.microsoft.com/en-us/azure/devops/pipelines/process/approvals?view=azure-devops&tabs=check-pass