https://github.com/zkfmapf123/gitlab_jenkins_ecs
automation set (gitlab, jenkins, ecs) use terraform + ansible
https://github.com/zkfmapf123/gitlab_jenkins_ecs
Last synced: 4 months ago
JSON representation
automation set (gitlab, jenkins, ecs) use terraform + ansible
- Host: GitHub
- URL: https://github.com/zkfmapf123/gitlab_jenkins_ecs
- Owner: zkfmapf123
- Created: 2023-07-15T00:29:30.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2023-07-15T07:59:18.000Z (almost 3 years ago)
- Last Synced: 2025-03-02T22:42:10.576Z (over 1 year ago)
- Language: HCL
- Size: 105 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Gitlab Jenkins ECS Automation
## Folder
```
|-configure-management (Ansible)
|- inventory
|- gitlab.install.yaml
|- jenkins.install.yaml
|- jenkins.update.yaml
|-infra (Terraform)
|- amc.tf
|- alb.tf
|- ec2.tf
|- ecs.tf
|- local.tf
|- provider.tf
|- sg.tf
|- vpc.tf
```
## Tools
- Terraform
- Ansible
- AWS
- VPC
- SG
- EC2 (Jenkins, Gitlab)
- ECR / ECS (Fargate)
- Event_bridge
- Lambda (ts)
## Todo
- [x] make aws infra terraform (vpc, sg, ec2, ecs, event_brige, lambda, ...)
- [x] make configure management use ansible
- [x] init jenkins and gitlab
- [x] Jenkin는 Route53에 Record에 DNS연결해야 한다.
- [x] GitLab은 자체적으로 https를 지원하기 때문에 Route53 Record에 eip를 연결시켜야 한다.
## ...
- terraform시 중복되는 자원들은 .json파일에 놓고 for_each를 하는 편이 좋으나... 그냥 씀 저렇게 하는게 더 귀찮아서 -> 하지만 best practice는 for_each를 하면서 해야좋음 module로 만들면 더좋고..
- acm이 등록이 안된다.. https는 나중에 하자.(jenkins)
- gitlab이 의외로 크네? t3.large로 해야할듯... t3.small은 disk 터진듯
- 저 cicd 구조랑 slack 부분은 안함 귀찮음