Skip to content
This repository has been archived by the owner on Oct 3, 2024. It is now read-only.

Commit

Permalink
Update development.md doc
Browse files Browse the repository at this point in the history
  • Loading branch information
Lucas Rodriguez committed Oct 18, 2023
1 parent 48ea41b commit eaf5c0a
Showing 1 changed file with 57 additions and 2 deletions.
59 changes: 57 additions & 2 deletions docs/development.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,69 @@ When making changes to the Pepr *.ts files are made, you can run the unit tests
make test-module
```

## Format the Pepr module
### Format the Pepr module

```bash
make format-module
```

## Rebuild the Pepr module
### Rebuild the Pepr module

```bash
make build-module
```

## Create EKS cluster

```bash
make deploy-eks-package CLUSTER_NAME=my-cluster-name
```

## Create IAM roles to authenticate to ECR

Note: The EKS cluster that is provided via CLUSTER_NAME must be ready/available

```bash
make create-iam CLUSTER_NAME=my-cluster-name
```

## Build the AWS init package

```bash
make aws-init-package
```

## Update the Zarf config file with registry type and IAM role ARNs

```bash
# Change REGISTRY_TYPE to public as needed
make update-zarf-config REGISTRY_TYPE="private"
```

## Zarf init

Note: Ensure the init package is in the root of the repository so that the zarf-config.toml file can be used:

```bash
cp ./build/zarf-init-*.tar.zst .
```

```bash
# Private ECR registry
zarf init \
--registry-url="$(aws sts get-caller-identity --query 'Account' --output text).dkr.ecr.us-east-1.amazonaws.com" \
--registry-push-username="AWS" \
--registry-push-password="$(aws ecr get-login-password --region us-east-1)" \
--components="zarf-ecr-credential-helper" \
--confirm
```

```bash
# Public ECR registry
zarf init \
--registry-url="$(aws ecr-public describe-registries --query 'registries[0].registryUri' --output text --region us-east-1)" \
--registry-push-username="AWS" \
--registry-push-password="$(aws ecr-public get-login-password --region us-east-1)" \
--components="zarf-ecr-credential-helper" \
--confirm
```

0 comments on commit eaf5c0a

Please sign in to comment.