* chore(examples): Add import examples for all resources Signed-off-by: Alexander Dahmen <alexander.dahmen@inovex.de> * Add guide: How to import resources Signed-off-by: Alexander Dahmen <alexander.dahmen@inovex.de> --------- Signed-off-by: Alexander Dahmen <alexander.dahmen@inovex.de>
21 lines
No EOL
575 B
HCL
21 lines
No EOL
575 B
HCL
resource "stackit_cdn_distribution" "example_distribution" {
|
|
project_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
|
|
config = {
|
|
backend = {
|
|
type = "http"
|
|
origin_url = "https://mybackend.onstackit.cloud"
|
|
}
|
|
regions = ["EU", "US", "ASIA", "AF", "SA"]
|
|
blocked_countries = ["DE", "AT", "CH"]
|
|
|
|
optimizer = {
|
|
enabled = true
|
|
}
|
|
}
|
|
}
|
|
|
|
# Only use the import statement, if you want to import an existing cdn distribution
|
|
import {
|
|
to = stackit_cdn_distribution.import-example
|
|
id = "${var.project_id},${var.distribution_id}"
|
|
} |