examples/iaas-image-upload #34
No reviewers
Labels
No labels
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: professional-service-best-practices/professional-service#34
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "examples/iaas-image-upload"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
examples/iaas-image-upload/stackit_imageresourceexamples/terraform.tfvars.examplesubfolder)What's included
00-provider.tf— stackitcloud/stackit >= 0.99.001-variables.tf— all variables with descriptions, defaults, and input validation02-image.tf—stackit_imageresource with UEFI/Secure Boot config and labels03-outputs.tf— image ID, name, scope, and checksumexamples/terraform.tfvars.example— safe-to-commit placeholder valuesREADME.md— prerequisites, deployment steps, validation, cleanup.gitignore— excludesimages/,keys/, and*.tfvarsNotes
qcow2,raw,isoimages/*— users place their file locally beforeterraform applyterraform validateandpre-commit run --all-filesboth pass cleanCould you please add a terraform file which shows on how to use this image for a server?
@ -0,0 +1,22 @@**/.terraform/*gitignore not needed. It's in the root of the project
@ -0,0 +100,4 @@stackit iam service-account key create \--project-id <project-id> \--service-account-email <sa-email> \--output-format json > keys/sa-key.jsonAdd a note that the service account also needs according permissions
Notes should be resolved via latest commits.
Please check @mauritz.uphoff
Please rename the output and server files as follows:
Server -> 003-server.tf
Outputs -> 004-outputs.tf
Alternatively, you could use 100-outputs.tf, that might be simpler and more consistent.
I’ve just merged a new pre-commit check that verifies all Terraform files (excluding modules) start with
010,020,030, etc. This is to help keep all examples aligned. Don’t forget to rename any existing.tffiles to match this naming convention.Once done, feel free to merge the changes yourself.
813b715604to4e6bab851dd71598ca06to64c698dd68LGTM! Merged :-)
e2a8bd5db4to93d90d9488