Skip to content

Commit

Permalink
Eliminate broken link warnings (except those from docs in the main re…
Browse files Browse the repository at this point in the history
…po) (#322)

* Lint existing blog posts

Signed-off-by: Tom Spurling <[email protected]>

* Use full URLs for /slack/ links

This causes them to be treated as external links rather than internal
links, so they open in a new tab and don't produce spurious
"broken link" warnings.

Signed-off-by: Tom Spurling <[email protected]>

* Fix a couple of broken blog links

Signed-off-by: Tom Spurling <[email protected]>

* Fix broken calendar link in blog post

Another static file with a trailing slash added by Docusaurus -- just
use a full URL to prevent this happening too.

Signed-off-by: Tom Spurling <[email protected]>

---------

Signed-off-by: Tom Spurling <[email protected]>
Co-authored-by: Tom Spurling <[email protected]>
  • Loading branch information
mehhhhhhhhhhhhhhh and tsprlng authored Aug 14, 2024
1 parent b9c146b commit 3cfc68c
Show file tree
Hide file tree
Showing 10 changed files with 121 additions and 125 deletions.
2 changes: 1 addition & 1 deletion blog/2023-10-10-opentofus-new-office-hours.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ c_3f2dd3c1fe0ef4e93ef3fc456ca2dd219a2e8fd85f6b40750af16c3df370bf93@group.calenda
import Button from "@site/src/components/Button";

<Button
href="/OpenTofu-Events-Calendar.ics"
href="https://opentofu.org/OpenTofu-Events-Calendar.ics"
variant="secondary"
className="inline-flex"
target="_blank"
Expand Down
190 changes: 94 additions & 96 deletions blog/2023-12-19-opentofu-release-candidate-is-out.md

Large diffs are not rendered by default.

3 changes: 1 addition & 2 deletions blog/2024-03-18-help-us-test-opentofu-1-7-0-alpha1.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,12 @@ Do not test this release on a production project! It is not a stable release!

:::


## Downloading the alpha release

The alpha release is available exclusively from the [GitHub Releases page](https://github.com/opentofu/opentofu/releases/tag/v1.7.0-alpha1). Please select the appropriate file for your platform. Here are some quick links:

| Platform/Device | Download link |
|---------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------|
| ------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Desktop Windows computer**<br />(64-bit) | [tofu_1.7.0-alpha1_windows_amd64.zip](https://github.com/opentofu/opentofu/releases/download/v1.7.0-alpha1/tofu_1.7.0-alpha1_windows_amd64.zip) |
| **MacOS**<br />(Macbook M1 or higher; ARM64) | [tofu_1.7.0-alpha1_darwin_arm64.tar.gz](https://github.com/opentofu/opentofu/releases/download/v1.7.0-alpha1/tofu_1.7.0-alpha1_darwin_arm64.tar.gz) |
| **MacOS**<br />(Macbook pre-M1 or lower; AMD64) | [tofu_1.7.0-alpha1_darwin_amd64.tar.gz](https://github.com/opentofu/opentofu/releases/download/v1.7.0-alpha1/tofu_1.7.0-alpha1_darwin_amd64.tar.gz) |
Expand Down
8 changes: 4 additions & 4 deletions blog/2024-04-18-opentofu-1-7-0-beta1.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ Do not test this release on a production project! It is not a stable release!
The beta release is available exclusively from the [GitHub Releases page](https://github.com/opentofu/opentofu/releases/tag/v1.7.0-beta1). Please select the appropriate file for your platform. Here are some quick links:

| Platform/Device | Download link |
|---------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------|
| ------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------ |
| **Desktop Windows computer**<br />(64-bit) | [tofu_1.7.0-beta1_windows_amd64.zip](https://github.com/opentofu/opentofu/releases/download/v1.7.0-beta1/tofu_1.7.0-beta1_windows_amd64.zip) |
| **MacOS**<br />(Macbook M1 or higher; ARM64) | [tofu_1.7.0-beta1_darwin_arm64.tar.gz](https://github.com/opentofu/opentofu/releases/download/v1.7.0-beta1/tofu_1.7.0-beta1_darwin_arm64.tar.gz) |
| **MacOS**<br />(Macbook pre-M1 or lower; AMD64) | [tofu_1.7.0-beta1_darwin_amd64.tar.gz](https://github.com/opentofu/opentofu/releases/download/v1.7.0-beta1/tofu_1.7.0-beta1_darwin_amd64.tar.gz) |
Expand Down Expand Up @@ -55,7 +55,7 @@ output "test" {

:::tip

If you are interested in a detailed breakdown of this functionality and some of the new unique features OpenTofu brings in this area, [join our live stream on April 24](https://www.youtube.com/watch?v=6OXBv0MYalY).
If you are interested in a detailed breakdown of this functionality and some of the new unique features OpenTofu brings in this area, [join our live stream on April 24](https://www.youtube.com/watch?v=6OXBv0MYalY).

:::

Expand All @@ -80,7 +80,7 @@ output "id" {
}
```

In this new version you can now also declaratively import resources in a loop:
In this new version you can now also declaratively import resources in a loop:

```hcl
variable "server_ids" {
Expand Down Expand Up @@ -131,7 +131,7 @@ terraform {
state {
method = method.aes_gcm.my_method
## Remove the fallback block after migration:
fallback{
method = method.unencrypted.migration
Expand Down
8 changes: 4 additions & 4 deletions blog/2024-04-30-opentofu-1-7-0.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
---
title: "OpenTofu 1.7.0 is out with State Encryption, Dynamic Provider-Defined Functions, and more"
title: "OpenTofu 1.7.0 is out with State Encryption, Dynamic Provider-Defined Functions, and more"
slug: opentofu-1-7-0
description: OpenTofu 1.7.0 is now available with full state encryption, dynamic provider-defined functions, the removed and loopable import blocks, new migration guides, and much more.
image: /img/blog/opentofu-1-7-0.png
---

In the last few months [since our first stable release](/blog/opentofu-is-going-ga/) the OpenTofu community and the core team have worked hand in hand to bring functionality to OpenTofu that has been requested for years. We are proud to announce the immediate availability of [OpenTofu 1.7.0](https://github.com/opentofu/opentofu/releases/tag/v1.7.0), bringing you the following highlights:
In the last few months [since our first stable release](/blog/opentofu-is-going-ga/) the OpenTofu community and the core team have worked hand in hand to bring functionality to OpenTofu that has been requested for years. We are proud to announce the immediate availability of [OpenTofu 1.7.0](https://github.com/opentofu/opentofu/releases/tag/v1.7.0), bringing you the following highlights:

- [**End-to-end state encryption**](/docs/v1.7/intro/whats-new/#state-encryption) protects your state file from prying eyes, no matter what storage backend you use. You can provide your encryption passphrase securely using environment variables, or use a key management system such as AWS KMS, GCP KMS, or OpenBao. *This feature has been developed in collaboration with Stephan Bartels (Interhyp) and Alex Scheel from the OpenTofu community, whom we would like to thank for their work on this feature.*
- [**End-to-end state encryption**](/docs/v1.7/intro/whats-new/#state-encryption) protects your state file from prying eyes, no matter what storage backend you use. You can provide your encryption passphrase securely using environment variables, or use a key management system such as AWS KMS, GCP KMS, or OpenBao. _This feature has been developed in collaboration with Stephan Bartels (Interhyp) and Alex Scheel from the OpenTofu community, whom we would like to thank for their work on this feature._
- [**Dynamic provider-defined functions**](/docs/v1.7/intro/whats-new/#provider-defined-functions) let a provider not only provide resources, but also native functions you can use in your OpenTofu code. What's more, we added an OpenTofu-only feature to let providers dynamically define custom functions based on your configuration. This enhancement allows you to fully integrate other programming languages as [shown in our live stream](https://www.youtube.com/watch?v=6OXBv0MYalY). You can try out this functionality with our experimental [Lua](https://github.com/opentofu/terraform-provider-lua) and [Go](https://github.com/opentofu/terraform-provider-go) providers.
- [**The removed block**](/docs/intro/whats-new/#removed-block) lets you mark OpenTofu-created resources for removal from the state file, but still keep the infrastructure you created.
- [**Loopable import blocks**](/docs/intro/whats-new/#loopable-import-blocks) let you bulk-import resources declaratively in your OpenTofu code, helping with large-scale migrations.
Expand Down Expand Up @@ -43,4 +43,4 @@ OpenTofu is first and foremost a community-driven project. We are looking forwar

While much of OpenTofu 1.8 is still in planning, we are currently finalizing a proposal for a feature that lets you [use variables as module sources, backend configuration, and more](https://github.com/opentofu/opentofu/issues/1042). Early evaluation of variables has been requested in over 30 issues so far and is one of the most-requested features in OpenTofu.

If you have a feature you would like to see in OpenTofu, please don't hesitate to [open an issue](https://github.com/opentofu/opentofu/issues/new/choose) or [reach out to us on Slack](/slack/).
If you have a feature you would like to see in OpenTofu, please don't hesitate to [open an issue](https://github.com/opentofu/opentofu/issues/new/choose) or [reach out to us on Slack](https://opentofu.org/slack/).
10 changes: 4 additions & 6 deletions blog/2024-06-24-help-us-test-opentofu-1-8-0-alpha1.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ slug: help-us-test-opentofu-1-8-0-alpha1
image: /img/blog/help-us-test-opentofu-1-8-0-alpha1.png
---

Hey there, OpenTofu community! Since the last OpenTofu release we've been hard at work bringing you a much-needed improvement to the .tf language: the ability to **use variables in backends, module sources, and the encryption configuration** (*early variable/locals evaluation*). This is currently the [top-voted issue on the OpenTofu GitHub](https://github.com/opentofu/opentofu/issues/1496) and has, in various forms, been requested for years with OpenTofu's predecessor.
Hey there, OpenTofu community! Since the last OpenTofu release we've been hard at work bringing you a much-needed improvement to the .tf language: the ability to **use variables in backends, module sources, and the encryption configuration** (_early variable/locals evaluation_). This is currently the [top-voted issue on the OpenTofu GitHub](https://github.com/opentofu/opentofu/issues/1496) and has, in various forms, been requested for years with OpenTofu's predecessor.

Additionally, we are bringing you a feature that lets you use new OpenTofu features while still keeping compatibility with Terraform as well as the ability to override resources and data sources in `tofu test`. The release also includes a host of smaller improvements and bugfixes to various parts of OpenTofu [listed in the changelog](https://github.com/opentofu/opentofu/blob/main/CHANGELOG.md).
Additionally, we are bringing you a feature that lets you use new OpenTofu features while still keeping compatibility with Terraform as well as the ability to override resources and data sources in `tofu test`. The release also includes a host of smaller improvements and bugfixes to various parts of OpenTofu [listed in the changelog](https://github.com/opentofu/opentofu/blob/main/CHANGELOG.md).

Now we'd like to ask you for help: we have done everything we could to make sure that the new alpha release doesn't break anything, and we need your help to get this release tested. If you have a **non-production** setup that you would be willing to test any of the new features on, please give it a try and give us [feedback using a GitHub issue](https://github.com/opentofu/opentofu/issues/new/choose), even if it's just telling us that everything went well.

Expand All @@ -18,13 +18,12 @@ Do not test this release on a production project! It is not a stable release!

:::


## Downloading the alpha release

The alpha release is available exclusively from the [GitHub Releases page](https://github.com/opentofu/opentofu/releases/tag/v1.8.0-alpha1). Please select the appropriate file for your platform. Here are some quick links:

| Platform/Device | Download link |
|---------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------|
| ------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Desktop Windows computer**<br />(64-bit) | [tofu_1.8.0-alpha1_windows_amd64.zip](https://github.com/opentofu/opentofu/releases/download/v1.8.0-alpha1/tofu_1.8.0-alpha1_windows_amd64.zip) |
| **MacOS**<br />(Macbook M1 or higher; ARM64) | [tofu_1.8.0-alpha1_darwin_arm64.tar.gz](https://github.com/opentofu/opentofu/releases/download/v1.8.0-alpha1/tofu_1.8.0-alpha1_darwin_arm64.tar.gz) |
| **MacOS**<br />(Macbook pre-M1; AMD64) | [tofu_1.8.0-alpha1_darwin_amd64.tar.gz](https://github.com/opentofu/opentofu/releases/download/v1.8.0-alpha1/tofu_1.8.0-alpha1_darwin_amd64.tar.gz) |
Expand All @@ -37,7 +36,7 @@ For the releases above, please unpack the archive and you should find the `tofu`

This feature lets you use variables and locals for **backends**, **module sources** and **encryption configuration** as long as they are not dependent on resources, data sources or module outputs. This works even if a local is referencing a variable, for example. This is only the first in a series of improvements that will make the .tf code more flexible with more improvements coming in future releases.

The `tofu init` command will now consume your `.tfvars` file and let you specify variables using the `-var` and `-var-file` options. Please note that this alpha release will *not* prompt you for missing variables, which is a feature we will add later. Note, that `tofu init` will fail if it is missing variables needed for static evaluation.
The `tofu init` command will now consume your `.tfvars` file and let you specify variables using the `-var` and `-var-file` options. Please note that this alpha release will _not_ prompt you for missing variables, which is a feature we will add later. Note, that `tofu init` will fail if it is missing variables needed for static evaluation.

For example, if you wanted to use the same configuration for your S3 backend and your AWS provider, you can now do this:

Expand Down Expand Up @@ -173,4 +172,3 @@ While this will not fully test the entire provisioning, it will highlight errors
## Providing feedback

Thank you for taking the time to test this preview release. If you have any feedback, please use [a GitHub issue](https://github.com/opentofu/opentofu/issues/new/choose) or chat with us on the [OpenTofu Slack](https://opentofu.org/slack/).

11 changes: 6 additions & 5 deletions blog/2024-07-09-opentofu-1-8-0-beta-1.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ On 2024/07/11, 1.8.0-beta2 was released to address issues present in 1.8.0-beta1
The beta release is available exclusively from the [GitHub Releases page](https://github.com/opentofu/opentofu/releases/tag/v1.8.0-beta2). Please select the appropriate file for your platform. Here are some quick links:

| Platform/Device | Download link |
|---------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------|
| ------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------ |
| **Desktop Windows computer**<br />(64-bit) | [tofu_1.8.0-beta2_windows_amd64.zip](https://github.com/opentofu/opentofu/releases/download/v1.8.0-beta2/tofu_1.8.0-beta2_windows_amd64.zip) |
| **MacOS**<br />(Macbook M1 or higher; ARM64) | [tofu_1.8.0-beta2_darwin_arm64.tar.gz](https://github.com/opentofu/opentofu/releases/download/v1.8.0-beta2/tofu_1.8.0-beta2_darwin_arm64.tar.gz) |
| **MacOS**<br />(Macbook pre-M1; AMD64) | [tofu_1.8.0-beta2_darwin_amd64.tar.gz](https://github.com/opentofu/opentofu/releases/download/v1.8.0-beta2/tofu_1.8.0-beta2_darwin_amd64.tar.gz) |
Expand Down Expand Up @@ -61,6 +61,7 @@ resource "aws_instance" "web" {
```

Instead of querying the AMI ID and spinning up the instance, we can write test code as follows:

```hcl
// This block will prevent OpenTofu from configuring aws provider.
// All provider's resources and data sources will be mocked.
Expand Down Expand Up @@ -150,7 +151,7 @@ While this will not fully test the entire provisioning, it will highlight errors

Introduced in OpenTofu 1.8.0-alpha1, this feature lets you use variables and locals for **backends**, **module sources** and **encryption configuration** as long as they are not dependent on resources, data sources or module outputs. This works even if a local is referencing a variable, for example. This is only the first in a series of improvements that will make the .tf code more flexible with more improvements coming in future releases.

The `tofu init` command will now consume your `.tfvars` file and let you specify variables using the `-var` and `-var-file` options. Please note that this alpha release will *not* prompt you for missing variables, which is a feature we will add later. Note, that `tofu init` will fail if it is missing variables needed for static evaluation.
The `tofu init` command will now consume your `.tfvars` file and let you specify variables using the `-var` and `-var-file` options. Please note that this alpha release will _not_ prompt you for missing variables, which is a feature we will add later. Note, that `tofu init` will fail if it is missing variables needed for static evaluation.

For example, if you wanted to use the same configuration for your S3 backend and your AWS provider, you can now do this:

Expand Down Expand Up @@ -224,6 +225,7 @@ Since we are now adding features to OpenTofu that are not present in Terraform,
### Static Variable Planing

Static variables are now handled correctly when embedded in plan files. This was [reported as a bug](https://github.com/opentofu/opentofu/issues/1768) found in 1.8.0-alpha1.

```bash
tofu plan -out=tofu.tfstate -var="param=value"
# Variables are correctly read from the given plan and should not be specified via CLI
Expand All @@ -238,10 +240,10 @@ Also included in the beta is [improvements in error messages produced by misconf
```
│ Error: Insufficient features blocks
│ on <empty> line 0:
│ (source code not available)
│ At least 1 "features" blocks are required.
```
Expand All @@ -251,4 +253,3 @@ This error message will now include information about which provider is encounte
## Providing feedback

Thank you for taking the time to test this preview release. If you have any feedback, please use [a GitHub issue](https://github.com/opentofu/opentofu/issues/new/choose) or chat with us on the [OpenTofu Slack](https://opentofu.org/slack/).

Loading

0 comments on commit 3cfc68c

Please sign in to comment.