Skip to content
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

Simplify terraform configuration #10

Merged
merged 2 commits into from
Nov 7, 2023
Merged

Simplify terraform configuration #10

merged 2 commits into from
Nov 7, 2023

Conversation

henrirosten
Copy link
Collaborator

  • Remove unnecessary complexities that we don't (yet) need from the terraform configuration, including unused files and variables.
  • Store initial VM admin username and key in sops instead of hard-coding them.
  • Remove the separate shell.nix for terraform, merge it with the main shell.nix. This simplifies the usage as the terraform configuration can now be done from the main shell.

Remove unnecessary complexities that we don't (yet) need from
the terraform configuration, including unused files and variables.

Store initial VM admin username and key in sops instead of hard-coding
them.

Signed-off-by: Henri Rosten <[email protected]>
Remove the separate shell.nix for terraform, merge it with the main
shell.nix. This simplifies the usage as the terraform configuration
can now be done from the main shell.

Signed-off-by: Henri Rosten <[email protected]>
@henrirosten henrirosten marked this pull request as ready for review November 7, 2023 11:07
@henrirosten henrirosten requested review from karim20230 and a team November 7, 2023 11:07
@henrirosten henrirosten merged commit 3e61c6e into main Nov 7, 2023
1 check passed
@@ -41,14 +44,14 @@ This project stores the terraform state in a remote storage in an azure storage

When starting a new infrastructure you need to initialize the terraform state storage:
```bash
$ cd azure-storage/
$ cd azure-storage
Copy link
Collaborator

Choose a reason for hiding this comment

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

Earlier change added "/" to the end of 'cd' command, this one drops it. Make those consistent.

# Resource group
resource "azurerm_resource_group" "ghaf_infra_tf_dev" {
name = "ghaf-infra-tf-dev"
location = var.resource_group_location
location = "swedencentral"
Copy link
Collaborator

Choose a reason for hiding this comment

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

Is it necessary to add this hardcoding now? Before long we need this configurable (for the uae deployment).

@henrirosten henrirosten deleted the simplify-terraform branch November 8, 2023 07:32
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.

3 participants