For long running tasks I like to use CodeBuild, ECS Fargate (task) is also an option.
What would make AWS even better
21–30 of 70 posts
Re: What would make AWS even better
#22I've gone through a bunch of audits, and automated scans, and I constantly have to explain this shit, even to AWS Employees.
How it works with ALBs, which do support security groups:
You want to receive traffic on port :443, and allow it to be accessible to the world. You have EC2 instances, and they are listening on the VPC at port :1234
So, you create:
- ALB my_alb which listens on :443, and forwards traffic to tg_traffic
- Target group tg_traffic, which contains the EC2 instances and targets the EC2 instance with port 1234
- Security Group sg_alb, attached to my_alb with two rules:
- rule 1, inbound, from 0.0.0.0/0:443
- rule 2, outbound, to sg_servers:1234
- Security Group sg_servers, attached to the EC2 instances with one rule: - rule 1, inbound from sg_alb:1234
This makes everyone happy. The rules require that traffic from the internet has to go through the ALB.Now how it works on a NLB, with the same scenario:
You want to receive traffic on port :443, and allow it to be accessible to the world. You have EC2 instances, and they are listening on the VPC at port :1234
However, NLBs, as mentioned, don't support security groups.
So, you create:
- NLB my_nlb which listens on :443, and forwards traffic to tg_traffic
- Target group tg_traffic, which contains the EC2 instances and targets the EC2 instance with port 1234
- Security Group sg_servers, attached to the EC2 instances with one rule:
- rule 1, inbound from 0.0.0.0:1234 (not :443, because the NLB translates the port for you, but not the source ip)
...that's it.However, now every audit/automated scan of the EC2 instance & it's security group is going to see that you're listening on some random port, and allowing traffic from anywhere. This throws errors/alerts all the time. Even AWS's automated scans are throwing these alerts.
When it's an auditor you have to take the time to explain that, no, that's how NLBs work. For automated scans, you have to just ignore the warnings/errors constantly.
If your instance has no public IP associated, then at least only that port is exposed, and traffic does have to go through the NLB.
If for some reason the instance does have a public IP associated, then anyone who can reach the public IP can bypass your NLB.
If you could have a SG attached, then you could force the traffic to go via the NLB and not come direct to the instance.
Re: What would make AWS even better
#23Re: What would make AWS even better
#24I am pretty surprised they don't compete with Stripe. They have some Amazon pay thing I'd never use, but competing with Stripe seems obvious. Same with Twilio. They do kind of compete with them, but not really. Their managed airflow is insanely basically unusably expensive, I don't get that.
Re: What would make AWS even better
#25What about, "treat AWS workers better"? Pay your people for their on call hours! Let them work on side projects and games in their spare time! Give them more than seven paid holidays. Give them more than two weeks vacation! Only six weeks of paid parental leave? I would absolutely be willing to pay more for AWS if I knew that amount was going to treating the poor folks who built it all better.
Re: What would make AWS even better
#26What about, "treat AWS workers better"? Pay your people for their on call hours! Let them work on side projects and games in their spare time! Give them more than seven paid holidays. Give them more than two weeks vacation! Only six weeks of paid parental leave? I would absolutely be willing to pay more for AWS if I knew that amount was going to treating the poor folks who built it all better.
Seattle dev: 1st year -> 2 weeks, 2-4th year -> 3 weeks, 5th+ year -> 4 weeks.
California dev: 1st year -> 3 weeks, 2-4th year -> 4 weeks, 5th+ year -> 5 weeks.
Re: What would make AWS even better
#27It would be great if the lambda could handle running long. Id probably even be fine if the duration was punitive in that the longer you run over X time it becomes progressively more expensive. This would create a disincentive for using the service wrongly but would allow for oddball tasks.