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

docs: adding terramate-block #62

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open

docs: adding terramate-block #62

wants to merge 5 commits into from

Conversation

AnnuCode
Copy link
Contributor

@AnnuCode AnnuCode commented Jul 1, 2024

No description provided.

@AnnuCode AnnuCode requested a review from a team as a code owner July 1, 2024 19:39
Copy link

netlify bot commented Jul 1, 2024

Deploy Preview for docs-terramate-io ready!

Name Link
🔨 Latest commit 66b0a8f
🔍 Latest deploy log https://app.netlify.com/sites/docs-terramate-io/deploys/66bc6255ce1cd80008b139db
😎 Deploy Preview https://deploy-preview-62--docs-terramate-io.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@@ -69,6 +69,7 @@ will occur.

Project-wide configuration can be defined in this block. All possible settings are described in the following subsections.

<a id="the-terramateconfiggit-block"></a>
Copy link
Contributor

Choose a reason for hiding this comment

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

Why are we adding those @AnnuCode ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

because the heading includes an inline code, I had to add an anchor tag to link to that heading in another markdown file. Without this, the generated heading removed hyphens and couldn't link to the correct section.

Copy link
Contributor

Choose a reason for hiding this comment

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

That's not correct ... e.g. the following link works and jumps directly to the right headline: https://terramate.io/docs/cli/reference/variables/metadata#stack-metadata

Copy link
Contributor

Choose a reason for hiding this comment

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

e.g.

[foo](./terramate.md#the-terramate-block)

should work.. the <a> element shouldn't be required at all. we don't use it anywhere

Copy link
Contributor Author

Choose a reason for hiding this comment

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

you are right, I've corrected the section links. Thanks!

@@ -92,6 +93,7 @@ terramate {
}
```

<a id="the-terramateconfiggenerate-block"></a>
Copy link
Contributor

Choose a reason for hiding this comment

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

Same here? we don't need this?

- `config.git`: [configure](../../projects/configuration.md#the-terramateconfiggit-block) git integration
- `config.generate`: [configure](../../projects/configuration.md#the-terramateconfiggenerate-block) code generation feature
- `config.run`: [configure](../../projects/configuration.md#the-terramateconfiggenerate-block) the `terramate run` command or set environment variables for it
- `config.cloud`: [configure](../../projects/configuration.md#the-terramateconfigcloud-block) the default Terramate Cloud organization name
Copy link
Contributor

Choose a reason for hiding this comment

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

Cloud is the block, the organization attribute is used to configure the Terramate Cloud Organization used in this project

run {
check_gen_code = false # Deprecated as of v0.4.5 (use terramate.config.disable_safeguards instead)
env {
TF_PLUGIN_CACHE_DIR = "/some/path/etc"
Copy link
Contributor

Choose a reason for hiding this comment

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

indentation seems off here

@soerenmartius soerenmartius requested review from i4ki and snakster July 3, 2024 03:55
@@ -4,3 +4,46 @@ description: Learn how to configure a Terramate project using the terramate bloc
---

# The `terramate` block

Use the `terramate` block to define project-wide configurations in the project's root. The `terramate` block is defined in the `terramate.tm.hcl` file and overrides any defaults by Terramate.
Copy link
Contributor

Choose a reason for hiding this comment

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

For correctness, the terramate block can be defined in any file in the root directory. Usually, we place it in the terramate.tm.hcl but it can have any name.

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