Note: This is my first blog post! Any feedback is totally welcome.
You can access the completed code for this blog here.
Introduction
...
For further actions, you may consider blocking this person and/or reporting abuse
Hey, pretty good write up. I have only couple of suggestions:
Thanks for the feedback!
I tend to add a "Billing" tag to the resources so then they can be grouped in Cost Explorer. I will add that in!
I always seem to forget about variable descriptions and types!
I did mention the cost aspect of NAT gateways but I will make sure it's clearer.
I was so hesitant about putting in NACLs! I think everyone has been burned by NACLs at some point 😁 I will take them out to avoid confusion.
Again thanks for the feedback! I'm new to blogging and trying to make the call on what can be too confusing for people when reading. It's great to have someone else's opinion.
Maybe put a note at the top of the NACLs section just to warn people "You can do this if you want, but the defaults are ok if you're a beginner"?
Yep, totally
Kieran,
I missed reading up about the NAT gateways and its quite clear, hence I edited out my post. Your first post is quite impressive and look forward to reading more. Cheers
Thank you!
Hi, thank you for great post!
I've found a lot of posts related to Terraform, ECS and Fargate, but this one is the best!
Thank you. That means a lot!
There always low alarm for CPU and Memory in the cloudwatch. Is there anyway to prevent low alarm when instance number is 1 ? Thanks.
Hi! Sorry for the late reply. There isn't a way to prevent that but there is a tick box option in the cloud watch alarms panel to hide auto scaling alarms. I hope this helps.
So after a couple of days searching how to exactly do this process, I finally found the gold mine. Thanks a lot, Kieran!! You nailed it.
Thank you for reading! I'm glad it was useful
Its too nice.. I have seen many blogs this is too neat .. we are trying to migrate from EC2 based ECS to Fargate....it took me 2 hours to migrate my entire code to to go with Fargate
I'm a confused as to what you mean by too neat. This is the process I used at the time to create an auto-scaling ECS Fargate service, nothing more, nothing less. If this is too difficult to do in your codebase I would consider refactoring it down to make it easier to manage, then work from there
Seems to have an error on first line starting Load balance explanation:
shouldn't be elb/variables.tf?