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
11
examples/resources/stackit_key_pair/resource.tf
Normal file
11
examples/resources/stackit_key_pair/resource.tf
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
# Create a key pair
|
||||
resource "stackit_key_pair" "keypair" {
|
||||
name = "example-key-pair"
|
||||
public_key = chomp(file("path/to/id_rsa.pub"))
|
||||
}
|
||||
|
||||
# Only use the import statement, if you want to import an existing key pair
|
||||
import {
|
||||
to = stackit_key_pair.import-example
|
||||
id = var.keypair_name
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue