-
Notifications
You must be signed in to change notification settings - Fork 35
fix(docs): Update CDN usage example #1005
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
base: main
Are you sure you want to change the base?
fix(docs): Update CDN usage example #1005
Conversation
--- | ||
|
||
## Prerequisites | ||
|
||
Before you begin, make sure you have the following: | ||
|
||
* A **STACKIT project** and a user account with the necessary permissions for the CDN. | ||
* **Terraform** installed on your local machine. | ||
* The STACKIT provider for Terraform configured. You can find more information on how to do this in the | ||
official [STACKIT provider documentation](https://registry.terraform.io/providers/stackitcloud/stackit/latest/docs). |
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.
I think the prerequisites part isn't really needed, because it will be directly in the our terraform docs and will replace this.
When this would be an guide on a different website, it would definitely make sense to add this, but because this is directly in our own docs on the terraform registry, I think that at least second and third point isn't really needed.
Probably the most important point is, that the user needs to have an account with the necessary permissions. This information can remain.
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.
Changed with next commit.
required_providers { | ||
stackit = { | ||
source = "stackitcloud/stackit" | ||
version = ">= 0.66.0" |
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.
avoid using a version here. Because then we would need to change it regularly to keep it up to date
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.
Changed with next commit.
# Read more about getting tokens here: | ||
# https://docs.stackit.cloud/stackit/en/acquire-a-bearer-token-with-service-account-keys-175112464.html | ||
default_region = "eu01" | ||
service_account_token = var.service_account_token |
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 recommended way it to authenticate with a service account key. The authentication with a token is deprecated https://registry.terraform.io/providers/stackitcloud/stackit/latest/docs#authentication.
The authentication part can be removed, to stay more consistent with the existing docs and this is more a generic
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.
Changed with next commit.
## Complete Terraform Configuration | ||
|
||
Here is the complete `main.tf` file, which follows the logical order of operations. | ||
|
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.
I like that you added here the complete terraform config. This makes it easier for our users, to just copy paste it and adjust a few fields 👍🏼
- Changed usage of an SA token to SA key file - Removed some obvious prerequisites and added info about obtaining an SA key file
@marceljk I've just addressed your points above. Feel free to take another look now 🙂 |
Description
Update and rework the CDN usage example documentation.
Jira: STACKITCDN-1003
Checklist
make fmt
examples/
directory)make generate-docs
(will be checked by CI)make test
(will be checked by CI)make lint
(will be checked by CI)