# AWS ECS / Fargate sonarqube 8.8 container

**URL:** <https://community.sonarsource.com/t/aws-ecs-fargate-sonarqube-8-8-container/41914>\
**Category:** SonarQube Server / Community Build\
**Tags:** kubernetes, docker\
**Created:** [April 19, 2021, 9:47pm UTC](https://community.sonarsource.com/t/aws-ecs-fargate-sonarqube-8-8-container/41914 "2021-04-19T21:47:28Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![dprob](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/dprob/32/21096_2.png) [@dprob](https://community.sonarsource.com/u/dprob)\
**Post date:** [April 19, 2021, 9:47pm UTC](https://community.sonarsource.com/t/aws-ecs-fargate-sonarqube-8-8-container/41914/1 "2021-04-19T21:47:28Z")

</div>

\*Using SonarQube version 8.8 (community edition docker container)  
\*PostgreSQL 12.5 on AWS RDS

I would like to get SQ version 8.8 running on AWS ECS using Fargate. We obviously don’t want a cluster, just a single instance. I would rather not use EC2 since I would have to patch the instance more frequently than the Docker container running Alpine.

Has anyone had any luck or documented what they did with more detail? I am still new to building out ECS and I did find the following article, but it seems like there are some gaps in information. **[Running SonarQube in ECS](https://www.linuxdeveloper.space/sonarqube-in-ecs/)**

The other issue is that I have to map to EFS by IP address instead of DNS (long story, its being worked on, but will not be resolved as soon as needed).

---

<div class="post-metadata">

**Author:** ![marc.teichtahl](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/marc.teichtahl/32/23678_2.png) [@marc.teichtahl](https://community.sonarsource.com/u/marc.teichtahl)\
**Post date:** [June 17, 2021, 1:59pm UTC](https://community.sonarsource.com/t/aws-ecs-fargate-sonarqube-8-8-container/41914/2 "2021-06-17T13:59:55Z")

</div>

How did you go with this ?

---

<div class="post-metadata">

**Author:** ![dprob](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/dprob/32/21096_2.png) [@dprob](https://community.sonarsource.com/u/dprob)\
**Post date:** [June 17, 2021, 4:48pm UTC](https://community.sonarsource.com/t/aws-ecs-fargate-sonarqube-8-8-container/41914/3 "2021-06-17T16:48:44Z")

</div>

Due to issue with our DHCP client config of DNS in our account, I could only use EC2 and add scripts to userdata. Now running SQ v8.9.1 and postgres 13.2. Let me know if you want more details.

---

<div class="post-metadata">

**Author:** ![marc.teichtahl](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/marc.teichtahl/32/23678_2.png) [@marc.teichtahl](https://community.sonarsource.com/u/marc.teichtahl)\
**Post date:** [June 17, 2021, 5:06pm UTC](https://community.sonarsource.com/t/aws-ecs-fargate-sonarqube-8-8-container/41914/4 "2021-06-17T17:06:38Z")

</div>

Good to hear you found a path forward.

We have a complete fargate/rds/efs/vpc solution just about working. If you want some starter code let me know

---

<div class="post-metadata">

**Author:** ![dprob](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/dprob/32/21096_2.png) [@dprob](https://community.sonarsource.com/u/dprob)\
**Post date:** [June 17, 2021, 5:13pm UTC](https://community.sonarsource.com/t/aws-ecs-fargate-sonarqube-8-8-container/41914/5 "2021-06-17T17:13:31Z")

</div>

Sure that would be great!

---

<div class="post-metadata">

**Author:** ![AndrasAgocs](https://avatars.discourse-cdn.com/v4/letter/a/b5a626/32.png) [@AndrasAgocs](https://community.sonarsource.com/u/AndrasAgocs)\
**Post date:** [June 21, 2021, 11:20pm UTC](https://community.sonarsource.com/t/aws-ecs-fargate-sonarqube-8-8-container/41914/6 "2021-06-21T23:20:37Z")

</div>

Hey @marc.teichtahl,

I’m in a similar situation and would be interested in taking a peek at that code of yours for your fargate setup if the offer still stands!

---

<div class="post-metadata">

**Author:** ![marc.teichtahl](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/marc.teichtahl/32/23678_2.png) [@marc.teichtahl](https://community.sonarsource.com/u/marc.teichtahl)\
**Post date:** [June 21, 2021, 11:41pm UTC](https://community.sonarsource.com/t/aws-ecs-fargate-sonarqube-8-8-container/41914/7 "2021-06-21T23:41:36Z")

</div>

No problem. We are cleaning up a few sharp edges and should have something solid in the coming week.

Please note: My working hours may not be your working hours. Please do not feel obligated to reply outside of your normal work schedule!

Sent on the go - please excuse mistakes

---

<div class="post-metadata">

**Author:** ![jacklemon](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/jacklemon/32/27076_2.png) [@jacklemon](https://community.sonarsource.com/u/jacklemon)\
**Post date:** [November 7, 2021, 5:18am UTC](https://community.sonarsource.com/t/aws-ecs-fargate-sonarqube-8-8-container/41914/8 "2021-11-07T05:18:33Z")

</div>

Hey @marc.teichtahl  
Do you have that started code for SonarQube in Fargate / RDS?

---

<div class="post-metadata">

**Author:** ![Varun\_Bhardwaj](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/varun_bhardwaj/32/28920_2.png) [@Varun\_Bhardwaj](https://community.sonarsource.com/u/Varun_Bhardwaj)\
**Post date:** [January 5, 2022, 1:36am UTC](https://community.sonarsource.com/t/aws-ecs-fargate-sonarqube-8-8-container/41914/9 "2022-01-05T01:36:14Z")

</div>

Hi @marc.teichtahl , I am wondering that you have attached the code in this trail. I am also interested to have a look at your code.

---

<div class="post-metadata">

**Author:** ![marc.teichtahl](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/marc.teichtahl/32/23678_2.png) [@marc.teichtahl](https://community.sonarsource.com/u/marc.teichtahl)\
**Post date:** [January 5, 2022, 2:00am UTC](https://community.sonarsource.com/t/aws-ecs-fargate-sonarqube-8-8-container/41914/10 "2022-01-05T02:00:19Z")

</div>

I have not yet. We will be publishing a whitepaper and code repo in Q1.

Please note: My working hours may not be your working hours. Please do not feel obligated to reply outside of your normal work schedule!

Sent on the go - please excuse mistakes

---

<div class="post-metadata">

**Author:** ![mosesbalaji](https://avatars.discourse-cdn.com/v4/letter/m/a3d4f5/32.png) [@mosesbalaji](https://community.sonarsource.com/u/mosesbalaji)\
**Post date:** [August 1, 2022, 6:35am UTC](https://community.sonarsource.com/t/aws-ecs-fargate-sonarqube-8-8-container/41914/11 "2022-08-01T06:35:40Z")

</div>

Hi Marc, can you please provide the ecs fargate template for sonarqube to be run in aws ecs fargate

---

<div class="post-metadata">

**Author:** ![Al1](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/al1/32/63998_2.png) [@Al1](https://community.sonarsource.com/u/Al1)\
**Post date:** [November 11, 2024, 5:31am UTC](https://community.sonarsource.com/t/aws-ecs-fargate-sonarqube-8-8-container/41914/12 "2024-11-11T05:31:42Z")

</div>

Hi, I’d like to take a look at this project.

Regards
