chore(examples): Add import examples for all resources (#939)
* 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>
This commit is contained in:
parent
e62729679e
commit
721e10a02f
118 changed files with 837 additions and 5 deletions
|
|
@ -3,7 +3,7 @@ resource "stackit_cdn_distribution" "example_distribution" {
|
|||
config = {
|
||||
backend = {
|
||||
type = "http"
|
||||
origin_url = "mybackend.onstackit.cloud"
|
||||
origin_url = "https://mybackend.onstackit.cloud"
|
||||
}
|
||||
regions = ["EU", "US", "ASIA", "AF", "SA"]
|
||||
blocked_countries = ["DE", "AT", "CH"]
|
||||
|
|
@ -13,3 +13,9 @@ resource "stackit_cdn_distribution" "example_distribution" {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
# 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}"
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue