Using AWS Fargate as web serverDynamic DNS for subdomain using AWS & Route53How To: Dockerized MongoDB...
Which branches of mathematics can be done just in terms of morphisms and composition?
What's the purpose of these copper coils with resitors inside them in A Yamaha RX-V396RDS amplifier?
Proof by Induction - New to proofs
On what did Lego base the appearance of the new Hogwarts minifigs?
Am I a Rude Number?
What's a good word to describe a public place that looks like it wouldn't be rough?
Why do neural networks need so many training examples to perform?
What are these green text/line displays shown during the livestream of Crew Dragon's approach to dock with the ISS?
ip vs ifconfig commands pros and cons
Do authors have to be politically correct in article-writing?
Why do members of Congress in committee hearings ask witnesses the same question multiple times?
Finding the number of integers that are a square and a cube at the same time
Finding ratio of the area of triangles
Is the theory of the category of topological spaces computable?
Is my plan for fixing my water heater leak bad?
Why is my solution for the partial pressures of two different gases incorrect?
Why does the DC-9-80 have this cusp in its fuselage?
Can I retract my name from an already published manuscript?
Crystal compensation for temp and voltage
Do my Windows system binaries contain sensitive information?
What's the rationale behind the objections to these measures against human trafficking?
Can I become debt free or should I file for bankruptcy? How do I manage my debt and finances?
What to do when being responsible for data protection in your lab, yet advice is ignored?
What is the purpose of easy combat scenarios that don't need resource expenditure?
Using AWS Fargate as web server
Dynamic DNS for subdomain using AWS & Route53How To: Dockerized MongoDB Replication on Elastic Container ServiceIn terraform, howto attach a backing ec2 instance to an ecs serviceCan I create an AWS ECS cluster that uses a custom VPC?Use AWS private DNS from Azure through site-to-site VPNHow to get the IP Address for a specific AWS ECS task?AWS Elastic Beanstalk CPU CappedConnecting multiple aws regions/VPC-s with a DNS forwarderLimit public access to AWS ECS Fargate ServiceAWS Application Load Balancer 502 Bad Gateway
Using AWS Fargate, the process to get a custom Docker container running on AWS ECS is relatively straightforward.
I was able to successfully test my container over the public IP assigned to the network interface of the VPC that the Fargate cluster is hosted in; the container is a simple HTTP server listening on 0.0.0.0:80
.
I have also recently purchased a DNS domain using AWS Route53.
Now, I want to assign the DNS to the ECS service so instead of sending the request to a random IP address (which also changes with each update of the ECS service) I want to be able to send my requests directly to the root of my domain.
How can I achieve that?
domain-name-system amazon-web-services aws-fargate
New contributor
add a comment |
Using AWS Fargate, the process to get a custom Docker container running on AWS ECS is relatively straightforward.
I was able to successfully test my container over the public IP assigned to the network interface of the VPC that the Fargate cluster is hosted in; the container is a simple HTTP server listening on 0.0.0.0:80
.
I have also recently purchased a DNS domain using AWS Route53.
Now, I want to assign the DNS to the ECS service so instead of sending the request to a random IP address (which also changes with each update of the ECS service) I want to be able to send my requests directly to the root of my domain.
How can I achieve that?
domain-name-system amazon-web-services aws-fargate
New contributor
add a comment |
Using AWS Fargate, the process to get a custom Docker container running on AWS ECS is relatively straightforward.
I was able to successfully test my container over the public IP assigned to the network interface of the VPC that the Fargate cluster is hosted in; the container is a simple HTTP server listening on 0.0.0.0:80
.
I have also recently purchased a DNS domain using AWS Route53.
Now, I want to assign the DNS to the ECS service so instead of sending the request to a random IP address (which also changes with each update of the ECS service) I want to be able to send my requests directly to the root of my domain.
How can I achieve that?
domain-name-system amazon-web-services aws-fargate
New contributor
Using AWS Fargate, the process to get a custom Docker container running on AWS ECS is relatively straightforward.
I was able to successfully test my container over the public IP assigned to the network interface of the VPC that the Fargate cluster is hosted in; the container is a simple HTTP server listening on 0.0.0.0:80
.
I have also recently purchased a DNS domain using AWS Route53.
Now, I want to assign the DNS to the ECS service so instead of sending the request to a random IP address (which also changes with each update of the ECS service) I want to be able to send my requests directly to the root of my domain.
How can I achieve that?
domain-name-system amazon-web-services aws-fargate
domain-name-system amazon-web-services aws-fargate
New contributor
New contributor
edited 4 hours ago
Markus Appel
New contributor
asked 4 hours ago
Markus AppelMarkus Appel
1134
1134
New contributor
New contributor
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
Your website visitors are not supposed to talk directly to the Fargate container. As you realised the IPs are not predictable and can change at any time - it’d be difficult to keeps the DNS up to date.
Instead use Application Load Balancer in front of Fargate and use the ALB’s address for your website.
ALB will automatically register the Fargate containers as the come and go.
Hope that helps :)
Okay, I was just testing the same, but with a Network Load Balancer. It works using the Amazon-provided domain. I also added a record to the public hosted zone that comes with the domain in Route53 (The hosted zone's name is the domain name followed by a dot) to redirect requests of type A to my load balancer. When I test the record it returns the correct IP - but in my browser the server couldn't be found. Do you know why?
– Markus Appel
3 hours ago
@MarkusAppel Nope I don't know why. I would need more details about what's in your zone. Dare to share the actual domain name?
– MLu
2 hours ago
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "2"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Markus Appel is a new contributor. Be nice, and check out our Code of Conduct.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f956565%2fusing-aws-fargate-as-web-server%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
Your website visitors are not supposed to talk directly to the Fargate container. As you realised the IPs are not predictable and can change at any time - it’d be difficult to keeps the DNS up to date.
Instead use Application Load Balancer in front of Fargate and use the ALB’s address for your website.
ALB will automatically register the Fargate containers as the come and go.
Hope that helps :)
Okay, I was just testing the same, but with a Network Load Balancer. It works using the Amazon-provided domain. I also added a record to the public hosted zone that comes with the domain in Route53 (The hosted zone's name is the domain name followed by a dot) to redirect requests of type A to my load balancer. When I test the record it returns the correct IP - but in my browser the server couldn't be found. Do you know why?
– Markus Appel
3 hours ago
@MarkusAppel Nope I don't know why. I would need more details about what's in your zone. Dare to share the actual domain name?
– MLu
2 hours ago
add a comment |
Your website visitors are not supposed to talk directly to the Fargate container. As you realised the IPs are not predictable and can change at any time - it’d be difficult to keeps the DNS up to date.
Instead use Application Load Balancer in front of Fargate and use the ALB’s address for your website.
ALB will automatically register the Fargate containers as the come and go.
Hope that helps :)
Okay, I was just testing the same, but with a Network Load Balancer. It works using the Amazon-provided domain. I also added a record to the public hosted zone that comes with the domain in Route53 (The hosted zone's name is the domain name followed by a dot) to redirect requests of type A to my load balancer. When I test the record it returns the correct IP - but in my browser the server couldn't be found. Do you know why?
– Markus Appel
3 hours ago
@MarkusAppel Nope I don't know why. I would need more details about what's in your zone. Dare to share the actual domain name?
– MLu
2 hours ago
add a comment |
Your website visitors are not supposed to talk directly to the Fargate container. As you realised the IPs are not predictable and can change at any time - it’d be difficult to keeps the DNS up to date.
Instead use Application Load Balancer in front of Fargate and use the ALB’s address for your website.
ALB will automatically register the Fargate containers as the come and go.
Hope that helps :)
Your website visitors are not supposed to talk directly to the Fargate container. As you realised the IPs are not predictable and can change at any time - it’d be difficult to keeps the DNS up to date.
Instead use Application Load Balancer in front of Fargate and use the ALB’s address for your website.
ALB will automatically register the Fargate containers as the come and go.
Hope that helps :)
answered 4 hours ago
MLuMLu
8,66712142
8,66712142
Okay, I was just testing the same, but with a Network Load Balancer. It works using the Amazon-provided domain. I also added a record to the public hosted zone that comes with the domain in Route53 (The hosted zone's name is the domain name followed by a dot) to redirect requests of type A to my load balancer. When I test the record it returns the correct IP - but in my browser the server couldn't be found. Do you know why?
– Markus Appel
3 hours ago
@MarkusAppel Nope I don't know why. I would need more details about what's in your zone. Dare to share the actual domain name?
– MLu
2 hours ago
add a comment |
Okay, I was just testing the same, but with a Network Load Balancer. It works using the Amazon-provided domain. I also added a record to the public hosted zone that comes with the domain in Route53 (The hosted zone's name is the domain name followed by a dot) to redirect requests of type A to my load balancer. When I test the record it returns the correct IP - but in my browser the server couldn't be found. Do you know why?
– Markus Appel
3 hours ago
@MarkusAppel Nope I don't know why. I would need more details about what's in your zone. Dare to share the actual domain name?
– MLu
2 hours ago
Okay, I was just testing the same, but with a Network Load Balancer. It works using the Amazon-provided domain. I also added a record to the public hosted zone that comes with the domain in Route53 (The hosted zone's name is the domain name followed by a dot) to redirect requests of type A to my load balancer. When I test the record it returns the correct IP - but in my browser the server couldn't be found. Do you know why?
– Markus Appel
3 hours ago
Okay, I was just testing the same, but with a Network Load Balancer. It works using the Amazon-provided domain. I also added a record to the public hosted zone that comes with the domain in Route53 (The hosted zone's name is the domain name followed by a dot) to redirect requests of type A to my load balancer. When I test the record it returns the correct IP - but in my browser the server couldn't be found. Do you know why?
– Markus Appel
3 hours ago
@MarkusAppel Nope I don't know why. I would need more details about what's in your zone. Dare to share the actual domain name?
– MLu
2 hours ago
@MarkusAppel Nope I don't know why. I would need more details about what's in your zone. Dare to share the actual domain name?
– MLu
2 hours ago
add a comment |
Markus Appel is a new contributor. Be nice, and check out our Code of Conduct.
Markus Appel is a new contributor. Be nice, and check out our Code of Conduct.
Markus Appel is a new contributor. Be nice, and check out our Code of Conduct.
Markus Appel is a new contributor. Be nice, and check out our Code of Conduct.
Thanks for contributing an answer to Server Fault!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f956565%2fusing-aws-fargate-as-web-server%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown