Skip to content

Commit 2842f4f

Browse files
committed
setup cloudfront cdn for htan-files
1 parent 051d3d4 commit 2842f4f

File tree

5 files changed

+106
-4
lines changed

5 files changed

+106
-4
lines changed

docs/kubernetes-deployment-with-gitops/argocd.md

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,13 @@ Argo CD dashboard can be accessed in multiple ways.
1111
### Public Instance
1212
For some of our clusters, we have attached the Argo CD dashboard to a public domain. See table below for the list of apps that have Argo CD instances publicly available.
1313

14-
{.compact}
15-
| App | Argo CD URL |
16-
|------------|--------------------------------------------------------|
17-
| cBioPortal | [argocd.cbioportal.org](https://argocd.cbioportal.org) |
14+
15+
| App | Environment | Argo CD URL |
16+
|---------------------|-------------|------------------------------------------------------------------------------------|
17+
| cBioPortal Public | Prod | [argocd.cbioportal.org](https://argocd.cbioportal.org) |
18+
| cBioPortal Internal | Dev | [argocd.cbioportal.dev.aws.mskcc.org](https://argocd.cbioportal.dev.aws.mskcc.org) |
19+
| OncoKB Internal | Prod | [argocd.oncokb.aws.mskcc.org](https://argocd.oncokb.aws.mskcc.org) |
20+
| OncoKB Internal | Dev | [argocd.oncokb.dev.aws.mskcc.org](https://argocd.oncokb.dev.aws.mskcc.org) |
1821

1922
### Port-Forwarding
2023
By default, all ArgoCD installations come with a built-in dashboard that you can access by port-forwarding. You will need `kubectl` and access to the cluster for this method.

iac/aws/203403084713/shared/service-catalog/.terraform.lock.hcl

Lines changed: 25 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
resource "aws_servicecatalog_provisioned_product" "htan_files_s3_cdn" {
2+
name = "htan_files_s3_cdn"
3+
product_id = "prod-5ghnhr2n5wnx4"
4+
provisioning_artifact_id = "pa-wupvv4plqlhoa"
5+
path_id = "lpv3-bgiovxbn4vdko"
6+
7+
provisioning_parameters {
8+
key = "DomainName"
9+
value = "htan.assets.cbioportal.org"
10+
}
11+
12+
provisioning_parameters {
13+
key = "ACMCertificateArn"
14+
value = "arn:aws:acm:us-east-1:203403084713:certificate/b3a29c0f-0e1a-4b58-b4ba-32d38492a16a"
15+
}
16+
17+
provisioning_parameters {
18+
key = "Environment"
19+
value = "prod"
20+
}
21+
22+
# Block non-MSKCC IPs
23+
provisioning_parameters {
24+
key = "Block"
25+
value = "false"
26+
}
27+
}
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
terraform {
2+
required_version = ">= 1.10.4"
3+
4+
required_providers {
5+
aws = {
6+
source = "hashicorp/aws"
7+
version = "~> 5.0"
8+
}
9+
}
10+
11+
backend "s3" {
12+
bucket = "k8s-terraform-state-storage-203403084713"
13+
key = "terraform/203403084713/service-catalog.tfstate"
14+
region = "us-east-1"
15+
use_lockfile = false
16+
}
17+
}
18+
19+
provider "aws" {
20+
region = var.AWS_REGION
21+
profile = var.AWS_PROFILE
22+
default_tags {
23+
tags = var.AWS_DEFAULT_TAGS
24+
}
25+
}
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
variable "AWS_PROFILE" {
2+
description = "AWS cli profile"
3+
type = string
4+
ephemeral = true
5+
default = "default"
6+
}
7+
8+
variable "AWS_REGION" {
9+
description = "AWS cli region"
10+
type = string
11+
default = "us-east-1"
12+
}
13+
14+
variable "AWS_DEFAULT_TAGS" {
15+
description = "Set of default tags that get added to all resources"
16+
type = map(string)
17+
default = {
18+
cdsi-owner = "[email protected]"
19+
cdsi-app = "cbioportal"
20+
cdsi-team = "data-visualization"
21+
}
22+
}

0 commit comments

Comments
 (0)