Co-authored-by: hashicorp-copywrite[bot] <110428419+hashicorp-copywrite[bot]@users.noreply.github.com>
44 lines
1.2 KiB
Terraform
44 lines
1.2 KiB
Terraform
# Copyright (c) HashiCorp, Inc.
|
|
# SPDX-License-Identifier: MPL-2.0
|
|
|
|
resource "boundary_scope" "org" {
|
|
name = "organization_one"
|
|
description = "My first scope!"
|
|
scope_id = "global"
|
|
auto_create_admin_role = true
|
|
auto_create_default_role = true
|
|
}
|
|
|
|
resource "boundary_scope" "project" {
|
|
name = "project_one"
|
|
description = "My first scope!"
|
|
scope_id = boundary_scope.org.id
|
|
auto_create_admin_role = true
|
|
}
|
|
|
|
resource "boundary_host_catalog_static" "example" {
|
|
scope_id = boundary_scope.project.id
|
|
}
|
|
|
|
resource "boundary_host_static" "first" {
|
|
name = "host_1"
|
|
description = "My first host!"
|
|
address = "10.0.0.1"
|
|
host_catalog_id = boundary_host_catalog_static.example.id
|
|
}
|
|
|
|
resource "boundary_host_static" "second" {
|
|
name = "host_2"
|
|
description = "My second host!"
|
|
address = "10.0.0.2"
|
|
host_catalog_id = boundary_host_catalog_static.example.id
|
|
}
|
|
|
|
resource "boundary_host_set_static" "web" {
|
|
host_catalog_id = boundary_host_catalog_static.example.id
|
|
host_ids = [
|
|
boundary_host_static.first.id,
|
|
boundary_host_static.second.id,
|
|
]
|
|
}
|