Skip to content

Feat: Deploy PowerProxy via Terraform - #2

Open
clemlesne wants to merge 9 commits into
timoklimmer:mainfrom
clemlesne:feat/terraform-deploy
Open

Feat: Deploy PowerProxy via Terraform#2
clemlesne wants to merge 9 commits into
timoklimmer:mainfrom
clemlesne:feat/terraform-deploy

Conversation

@clemlesne

Copy link
Copy Markdown
Contributor

Note: Requires to be merged after #1.

  • Configuration file is took from "[workspace]/config" folder
  • OpenAI deployments are not touched
  • Container App resource links with a previously created App Insight, for Azure native metrics

@clemlesne
clemlesne force-pushed the feat/terraform-deploy branch from f634a62 to bb3c6a1 Compare September 25, 2023 17:13

@timoklimmer timoklimmer left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • Please remove all the changes not related to the Terraform deployment, like changes in launch.json, settings.json, config.py, dicts.py, LogUsageToLogAnalytics.py, base.py, powerproxy.py, config.example.yaml.
  • Besides, .gitignore should exclude only relevant files, not files with "arbitrary" extensions.
  • Also please improve the documentation.
  • PowerProxy will automatically take a config string from env var POWERPROXY_CONFIG_STRING if available.
  • I think it would be good if we include code to deploy a Log Analytics etc. but no Azure OpenAI resource.

@clemlesne
clemlesne force-pushed the feat/terraform-deploy branch from bb3c6a1 to 55ad85c Compare September 29, 2023 15:46
@clemlesne

Copy link
Copy Markdown
Contributor Author

Commit 55ad85c:

  • Add Log Analytics deployment with autoconfiguration of the provided config file
  • Ability to customize the GitHub repo to build the container from (to deploy & test updates when forking)

@clemlesne
clemlesne force-pushed the feat/terraform-deploy branch 2 times, most recently from 55a8b36 to 81f1547 Compare October 9, 2023 08:10
- Configuration file is took from "[workspace]/config" folder
- OpenAI deployments are not touched
- Container App resource links with a the created App Insight, for Azure native metrics
- Log Analytics Table is created automatically, even if neither ARM or Terraform resource is available, this should be fixed when resource will be available from the AzureRM provider
@clemlesne
clemlesne force-pushed the feat/terraform-deploy branch from 81f1547 to afae83a Compare October 9, 2023 08:12
@timoklimmer timoklimmer changed the title Feat: Deploy the app in a reproductible and safe way with Terraform Feat: Deploy PowerProxy via Terraform Nov 23, 2023
@timoklimmer

Copy link
Copy Markdown
Owner

Azure Redis Cache has been added meanwhile. Therefore, would need to be considered in the TerraForm templates as well.

@LeonKalt

Copy link
Copy Markdown

Looking forward, for a terraform implementation. This would really help our project!

@krohm krohm left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

line 91, --yes paramter is wrong in the create Statement

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants