Skip to content

Commit

Permalink
chore: update doc, update examples
Browse files Browse the repository at this point in the history
  • Loading branch information
Telemaco019 committed Sep 2, 2024
1 parent 95f04b8 commit 545fcd7
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .terraform-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ content: |-
* Fetch the command for retrieving the credentials from the module outputs:
```shell
terraform output eks_get_credentials
terraform output eks_cluster_get_credentials
```
* Run the command you got from the previous step
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ Prerequisites: install the [AWS CLI](https://docs.aws.amazon.com/cli/latest/user
* Fetch the command for retrieving the credentials from the module outputs:

```shell
terraform output eks_get_credentials
terraform output eks_cluster_get_credentials
```

* Run the command you got from the previous step
Expand Down
38 changes: 37 additions & 1 deletion examples/basic/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ data "aws_security_group" "default" {
# ------ Main ------ #
module "main" {
source = "nebuly-ai/nebuly-platform/aws"
version = "0.2.10"
version = "0.4.1"

security_group = data.aws_security_group.default

Expand All @@ -63,6 +63,15 @@ module "main" {
rds_multi_availability_zone_enabled = false
rds_availability_zone = var.availability_zones[0]

openai_endpoint = "<your-openai-endpoint>"
openai_gpt4_deployment_name = "<your-openai-gpt4-deployment-name>"
platform_domain = "your.domain.com"
nebuly_credentials = {
client_id = "<your-nebuly-client-id>"
client_secret = "<your-nebuly-client-secret>"
}


vpc_id = data.aws_vpc.default.id
region = var.region
subnet_ids = data.aws_subnets.default.ids
Expand All @@ -84,3 +93,30 @@ module "main" {
}
}


# ------ Outputs ------ #
output "helm_values_bootstrap" {
value = module.main.helm_values_bootstrap
sensitive = true
description = <<EOT
The `bootrap.values.yaml` file for installing the Nebuly AWS Boostrap chart with Helm.
EOT
}
output "helm_values" {
value = module.main.helm_values
sensitive = true
description = <<EOT
The `values.yaml` file for installing Nebuly with Helm.
The default standard configuration is used, which uses Nginx as ingress controller and exposes the application to the Internet. This configuration can be customized according to specific needs.
EOT
}
output "secret_provider_class" {
value = module.main.secret_provider_class
sensitive = true
description = "The `secret-provider-class.yaml` file to make Kubernetes reference the secrets stored in the Key Vault."
}
output "eks_cluster_get_credentials" {
description = "Command for getting the credentials for accessing the Kubernetes Cluster."
value = module.main.eks_cluster_get_credentials
}

0 comments on commit 545fcd7

Please sign in to comment.