File tree Expand file tree Collapse file tree 2 files changed +12
-3
lines changed Expand file tree Collapse file tree 2 files changed +12
-3
lines changed Original file line number Diff line number Diff line change 11vendor
2- examples /.terraform
3- examples /. terraform.lock.hcl
2+ examples /.terraform *
3+ examples /terraform. *
Original file line number Diff line number Diff line change 66# 4. Run `cd examples && terraform init`
77# 5. Run `terraform plan` to check the changes
88# 6. Run `terraform apply` to apply the changes
9- # 7. Run `terraform destory` to delete the test resources
9+ # 7. Run `terraform output` to find the outputs
10+ # 8. Run `terraform destory` to delete the test resources
1011terraform {
1112 required_providers {
1213 bytebase = {
@@ -47,3 +48,11 @@ resource "bytebase_instance" "dev_instance" {
4748 # username = "username"
4849 # password = "password"
4950}
51+
52+ # Print the new instance
53+ output "dev_instance" {
54+ value = bytebase_instance. dev_instance
55+ # The password in instance is sensitive, so you cannot directly get its value from the output.
56+ # But we can still print the instance via `terraform output -json dev_instance`
57+ sensitive = true
58+ }
You can’t perform that action at this time.
0 commit comments