How can I connect to a database from a Fargate ECS task?
AWS
Before you go any further, make sure you have an Amazon ECS cluster and an Amazon Relational Database Service (Amazon RDS) database running on Fargate. Make a connection between your task and the database. Create a Python script that connects to your MySQL database first. After that, write a Dockerfile with the commands needed to...
Continue Reading
How to Use CloudFront to Serve a Static Website?
AWS
The following steps below are to set up an Amazon CloudFront distribution with the S3 endpoint type as the origin. As the origin, use a REST API endpoint with OAI. 1. access restrictions. We utilize the Amazon S3 console to establish a bucket and upload the website files. Next, we’ll set up an Amazon CloudFront...
Continue Reading
How can I use CloudFront to limit access to an Amazon S3 bucket?
AWS
How can I use CloudFront to limit access to an Amazon S3 bucket? Amazon CloudFront is an Amazon Web Services content delivery network. Content delivery networks (CDNs) are a worldwide distributed network of proxy servers that cache content, such as online videos or other large files, closer to customers, boosting download speeds. Before you set...
Continue Reading
What is Cloudflare Zone Lockdown and how do I set it up?
Cloudflare
Before we go into the Cloudflare Zone Lockdown configuration stages, let’s take a look at some of the features: Zone Lockdown’s Features A list of one or more IP addresses, CIDR ranges, or networks that are the only IPs allowed to access a domain, subdomain, or URL is known as zone lockdown. If someone from...
Continue Reading
How can I assign my EC2 Windows or Linux instance a static public IP address?
AWS
Every time I stop and start my Amazon Elastic Compute Cloud (Amazon EC2) instance, the auto-assigned public IP address connected with it changes. How can I provide my Windows or Linux EC2 instance a permanent public IP address that doesn’t change when I stop and start the instance? What is the meaning of an elastic...
Continue Reading