- If AppServer Application access is req., We will use LB/GW
- If Actual Server itself if req., We should use
- Private VPN Connection with that (1st priority)
- Public IP and Place it in - Public Subnet having Internet Gateway (2nd Priority)
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
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 |
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
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
https://learn.microsoft.com/en-us/azure/devops/pipelines/process/approvals?view=azure-devops&tabs=check-pass