-
-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
additional hints on module structure
- Loading branch information
Showing
1 changed file
with
12 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -158,6 +158,18 @@ When you publish a Terraform module, a corresponding DeployKey must be created f | |
* Versioning must follow [Semantic Versioning](https://semver.org) specs | ||
* Currently only `.zip` is supported. | ||
|
||
**NOTE**: The zipped module directory layout should follow the [Terraform module structure](https://www.terraform.io/docs/language/modules/develop/structure.html). | ||
|
||
Example: | ||
``` | ||
module.zip | ||
├── main.tf | ||
├── outputs.tf | ||
├── README.md | ||
├── variables.tf | ||
└── <any-other-file-or-directory> | ||
``` | ||
|
||
You can simply upload modules to the registry via its HTTP REST-Api. It will return HTTP status `200` on success. | ||
```shell | ||
curl -XPOST -H 'x-api-key: <API_KEY>' --fail-with-body -F [email protected] "https://example.corp.com/terraform/modules/v1/<namespace>/<name>/<provider>/<version>" | ||
|