-
Notifications
You must be signed in to change notification settings - Fork 15
spk infra generate (iteration 2) #132
Conversation
|
@NathanielRose apologies, if the documentation was not well-written. I'll spend more time improving it. Although, I'm trying to reproduce the issue you're experiencing, and am unable to do so. So, there is such thing as running If you want to generate for a specific region of the I will go ahead and update the documentation, so it has better instructions on how to use |
|
@yradsmikham Here is an exact repro:
$ ./spk-linux infra scaffold --name discovery-service --source https://github.com/microsoft/bedrock --version "v0.12.0" --template cluster/environments/azure-single-keyvault
$ ./spk-linux infra scaffold --name discovery-service/east --source https://github.com/microsoft/bedrock --version "v0.12.0" --template cluster/environments/azure-simple
$ ./spk-linux infra scaffold --name discovery-service/west --source https://github.com/microsoft/bedrock --version "v0.12.0" --template cluster/environments/azure-simple
$ ./spk-linux infra generate --project discovery-service/
$ cd discovery-service/
$ ls
definition.json east -generated west
$ Using File Explorer to rename -generated to discovery-generated
$ cd discovery-generated/
$ ls
backend.tfvars main.tf README.md spk.tfvars terraform.tfvars variables.tf
$ ./spk-linux infra scaffold --name discovery-service --source https://github.com/microsoft/bedrock --version "v0.12.0" --template cluster/environments/azure-single-keyvault
$ ./spk-linux infra scaffold --name discovery-service/east --source https://github.com/microsoft/bedrock --version "v0.12.0" --template cluster/environments/azure-simple
$ ./spk-linux infra scaffold --name discovery-service/west --source https://github.com/microsoft/bedrock --version "v0.12.0" --template cluster/environments/azure-simple
$ cd discovery-service/
$ ./spk-linux infra generate
$ cd ../discovery-service-generated/
$ ls
backend.tfvars home main.tf README.md spk.tfvars terraform.tfvars variables.tfWhere home has the folder path to discovery-service/ |
NathanielRose
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm - Works on Linux/windows
The current behavior for generate is based on - https://github.com/CatalystCode/bedrock-end-to-end-dx#generating-deployable-cluster-terraform-scripts
Enhanced Future functionality depicted here - microsoft/bedrock#791
jmspring
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The renaming of "terraform.tfvars" loop only renames the one file, not the others. Further, it continues to iterate once that single file is renamed. See note for preferred fix and possible error.
…enerate.ts, and copy exclude terraform.tfvars
…de/spk into yvonne.infra.generate
|
@jmspring I removed the renaming functionality, and refactored the |
the requested changes have been resolved, user has not responded after several follow-ups.
definition.jsonfiles from parent to leaf directoriesgeneratedhierarchy resembling definition hierarchygenerateddirectoryCloses microsoft/bedrock#721.