https://github.com/chrispsheehan/aws-argocd
Ephemeral argocd instance hosted on ec2
https://github.com/chrispsheehan/aws-argocd
argocd bash ec2 kubernetes minikube terraform
Last synced: 3 months ago
JSON representation
Ephemeral argocd instance hosted on ec2
- Host: GitHub
- URL: https://github.com/chrispsheehan/aws-argocd
- Owner: chrispsheehan
- Created: 2023-11-11T20:22:34.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-12-04T20:02:10.000Z (over 2 years ago)
- Last Synced: 2025-07-03T17:09:59.046Z (12 months ago)
- Topics: argocd, bash, ec2, kubernetes, minikube, terraform
- Language: HCL
- Homepage:
- Size: 77.1 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# aws-argocd
What problem(s) are we looking to solve?
- Setting up argocd can be tricky.
- Off the shelf options (AWS EKS) can be expensive.
This repo leverages terraform, argoCD and EC2 in creating ephemeral environments.
## prerequisites
- create AWS account [here](https://aws.amazon.com/resources/create-account/)
- associate credentials as per [here](https://registry.terraform.io/providers/hashicorp/aws/latest/docs)
- run one time terraform setup with `just init`
## deploy aws infrastructure
- run `just deploy`
- note it will take a few minutes to spin up!
- access app via `app-url` output value.
- once finished ensure you run `just destroy`
## log into argocd
- run `just get-password` and obtain from terminal
- in the below example the password is `slZ9tG0Sp2O8fjbH`
```bash
, #_
~\_ ####_ Amazon Linux 2023
~~ \_#####\
~~ \###|
~~ \#/ ___ https://aws.amazon.com/linux/amazon-linux-2023
~~ V~' '->
~~~ /
~~._. _/
_/ _/
_/m/'
slZ9tG0Sp2O8fjbH
```
- username is `admin`
- access argocd UI via `argocd-url` output value.
- note you may be (initially) blocked and have to bypass in the browser
## references
- [minikube](https://minikube.sigs.k8s.io/docs/start/)
- [kubectl](https://kubernetes.io/docs/tasks/tools/#kubectl)
- [terraform](https://www.terraform.io/)
- [EC2](https://aws.amazon.com/pm/ec2/)
- [argocd](https://argo-cd.readthedocs.io/en/stable/)
### gotchas
- error (M1 / terraform)
```sh
╷
│ Error: Incompatible provider version
│
│ Provider registry.terraform.io/hashicorp/template v2.2.0 does not have a package available for your current platform, darwin_arm64.
```
- fix
```sh
brew install kreuzwerker/taps/m1-terraform-provider-helper
m1-terraform-provider-helper activate
m1-terraform-provider-helper install hashicorp/template -v v2.2.0
```