Skip to content

Add app initialization #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -35,4 +35,5 @@ terraform.rc

# Codefresh Config

.cfconfig
.cfconfig
.Codefresh
42 changes: 38 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,42 @@
# This repository is experimental. Please be careful using this repository at this time.

Currently working to support Amazon cloud and GitHub.

You'll need the following today to spin up a demo environment.

1. [Codefresh Account](https://g.codefresh.io/signup)
1. [Amazon Account](https://aws.amazon.com/)
1. [GitHub Account](https://github.com/signup)

## This project is meant to...

1. Create the necessary infrastructure in Amazon for Codefresh.
1. Install Codefresh Runtime
1. Install GitOps Runtime
1. Install a Demo GitOps Application
1. Create the necessary Cloud infrastructure for Codefresh.
1. Install [Codefresh Runtime](https://artifacthub.io/packages/helm/codefresh-runner/cf-runtime)
1. Install [GitOps Runtime](https://artifacthub.io/packages/helm/codefresh-gitops-runtime/gitops-runtime)
1. Install a [Demo GitOps Application](https://github.com/codefresh-contrib/example-voting-app)

### Required Variables

| Arguments | DEFAULT | TYPE | DESCRIPTION |
|------------------|-------------------------|--------|---------------------------------------------------------------------------------------------------------------------------------|
| eks_cluster_name | Amazon EKS Cluster Name | string | Used throughout Terraform as unique name for many Amazon/Codefresh Resources |
| cf_account_id | Codefresh Account ID | string | https://g.codefresh.io/2.0/account-settings/account-information |
| cf_api_token | Codefresh API Key | string | [Generate API Key](https://g.codefresh.io/user/settings) All Scopes |
| github_api_token | GitHub API Token | string | [Generate Classic Token](https://github.com/settings/tokens), Scopes - *.repo, admin:repo_hook.*, |
| github_owner | GitHub Organization | string | Organization or Personal Account |
| jira_api_token | Jira API Token | string | [Generate API Token](https://id.atlassian.com/manage-profile/security/api-tokens) |

Example Variable Files

``` terraform.tfvars.json
{
"eks_cluster_name": "",
"cf_account_id": "",
"cf_api_token": "",
"github_api_token": "",
"github_owner": "",
"jira_api_token": ""
}
```

If you need to customize either runtime installation you'll find Helm values files in this repository which will be applied to the installs.
70 changes: 54 additions & 16 deletions terraform/amazon/github/.terraform.lock.hcl

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

551 changes: 465 additions & 86 deletions terraform/amazon/github/bootstrap.tf

Large diffs are not rendered by default.

17 changes: 12 additions & 5 deletions terraform/amazon/github/vars.tf
Original file line number Diff line number Diff line change
@@ -38,7 +38,7 @@ variable "eks_mng_instance_types" {

variable "eks_mng_min_size" {
type = number
default = 3
default = 5
description = "Minimum EKS Managed Node Group size"
}

@@ -50,7 +50,7 @@ variable "eks_mng_max_size" {

variable "eks_mng_desired_size" {
type = number
default = 3
default = 5
description = "Desired EKS Managed Node Group size"
}

@@ -79,7 +79,7 @@ variable "eks_mng_tags" {
variable "cf_account_id" {
type = string
default = ""
sensitive = true
#sensitive = true
description = "Codefresh Account ID"
}
# Available at: https://g.codefresh.io/2.0/account-settings/account-information
@@ -94,7 +94,7 @@ variable "cf_api_host" {
variable "cf_api_token" {
type = string
default = ""
sensitive = true
#sensitive = true
description = "Codefresh access token. Create it from the Codefresh UI"
}
# Documentation: https://codefresh.io/docs/docs/integrations/codefresh-api/#authentication-instructions
@@ -132,12 +132,19 @@ variable "gitops_runtime_namespace" {
variable "github_api_token" {
type = string
default = ""
sensitive = true
#sensitive = true
description = "GitHub API Token"
}

variable "github_owner" {
type = string
default = ""
description = "GitHub Owner (Personal Account or Organization)"
}

variable "jira_api_token" {
type = string
default = ""
#sensitive = true
description = "JIRA API Token"
}