chore: run go generate
This commit is contained in:
1 parent
8aa93ccb69
commit
622fca1c0e
4 files changed
+78
-78
No files matched your search
@@ -38,13 +38,13 @@ resource "boundary_host_catalog_plugin" "aws_example" {
|
|||||||
description = "My first host catalog!"
|
description = "My first host catalog!"
|
||||||
scope_id = boundary_scope.project.id
|
scope_id = boundary_scope.project.id
|
||||||
plugin_name = "aws"
|
plugin_name = "aws"
|
||||||
attributes_json = jsonencode({"region"="us-east-1"})
|
attributes_json = jsonencode({ "region" = "us-east-1" })
|
||||||
|
|
||||||
# recommended to pass in aws secrets using a file() or using environment variables
|
# recommended to pass in aws secrets using a file() or using environment variables
|
||||||
# the secrets below must be generated in aws by creating a aws iam user with programmatic access
|
# the secrets below must be generated in aws by creating a aws iam user with programmatic access
|
||||||
secrets_json = jsonencode({
|
secrets_json = jsonencode({
|
||||||
"access_key_id"="aws_access_key_id_value",
|
"access_key_id" = "aws_access_key_id_value",
|
||||||
"secret_access_key"="aws_secret_access_key_value"
|
"secret_access_key" = "aws_secret_access_key_value"
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -54,23 +54,23 @@ resource "boundary_host_catalog_plugin" "aws_example" {
|
|||||||
# For more information about azure ad applications, please visit here:
|
# For more information about azure ad applications, please visit here:
|
||||||
# https://learn.hashicorp.com/tutorials/boundary/azure-host-catalogs#register-a-new-azure-ad-application-1
|
# https://learn.hashicorp.com/tutorials/boundary/azure-host-catalogs#register-a-new-azure-ad-application-1
|
||||||
resource "boundary_host_catalog_plugin" "azure_example" {
|
resource "boundary_host_catalog_plugin" "azure_example" {
|
||||||
name = "My azure catalog"
|
name = "My azure catalog"
|
||||||
description = "My second host catalog!"
|
description = "My second host catalog!"
|
||||||
scope_id = boundary_scope.project.id
|
scope_id = boundary_scope.project.id
|
||||||
plugin_name = "azure"
|
plugin_name = "azure"
|
||||||
|
|
||||||
# the attributes below must be generated in azure by creating an ad application
|
# the attributes below must be generated in azure by creating an ad application
|
||||||
attributes_json = jsonencode({
|
attributes_json = jsonencode({
|
||||||
"disable_credential_rotation"="true",
|
"disable_credential_rotation" = "true",
|
||||||
"tenant_id"="ARM_TENANT_ID",
|
"tenant_id" = "ARM_TENANT_ID",
|
||||||
"subscription_id"="ARM_SUBSCRIPTION_ID",
|
"subscription_id" = "ARM_SUBSCRIPTION_ID",
|
||||||
"client_id"="ARM_CLIENT_ID"
|
"client_id" = "ARM_CLIENT_ID"
|
||||||
})
|
})
|
||||||
|
|
||||||
# recommended to pass in aws secrets using a file() or using environment variables
|
# recommended to pass in aws secrets using a file() or using environment variables
|
||||||
# the secrets below must be generated in azure by creating an ad application
|
# the secrets below must be generated in azure by creating an ad application
|
||||||
secrets_json = jsonencode({
|
secrets_json = jsonencode({
|
||||||
"secret_value"="ARM_CLIENT_SECRET"
|
"secret_value" = "ARM_CLIENT_SECRET"
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|||||||
@@ -38,29 +38,29 @@ resource "boundary_host_catalog_plugin" "aws_example" {
|
|||||||
description = "My first host catalog!"
|
description = "My first host catalog!"
|
||||||
scope_id = boundary_scope.project.id
|
scope_id = boundary_scope.project.id
|
||||||
plugin_name = "aws"
|
plugin_name = "aws"
|
||||||
attributes_json = jsonencode({"region"="us-east-1"})
|
attributes_json = jsonencode({ "region" = "us-east-1" })
|
||||||
|
|
||||||
# recommended to pass in aws secrets using a file() or using environment variables
|
# recommended to pass in aws secrets using a file() or using environment variables
|
||||||
# the secrets below must be generated in aws by creating a aws iam user with programmatic access
|
# the secrets below must be generated in aws by creating a aws iam user with programmatic access
|
||||||
secrets_json = jsonencode({
|
secrets_json = jsonencode({
|
||||||
"access_key_id"="aws_access_key_id_value",
|
"access_key_id" = "aws_access_key_id_value",
|
||||||
"secret_access_key"="aws_secret_access_key_value"
|
"secret_access_key" = "aws_secret_access_key_value"
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
resource "boundary_host_set_plugin" "web" {
|
resource "boundary_host_set_plugin" "web" {
|
||||||
name = "My web host set plugin"
|
name = "My web host set plugin"
|
||||||
host_catalog_id = boundary_host_catalog_plugin.aws_exmaple.id
|
host_catalog_id = boundary_host_catalog_plugin.aws_exmaple.id
|
||||||
attributes_json = jsonencode({"filters"="tag:service-type=web"})
|
attributes_json = jsonencode({ "filters" = "tag:service-type=web" })
|
||||||
}
|
}
|
||||||
|
|
||||||
resource "boundary_host_set_plugin" "foobar" {
|
resource "boundary_host_set_plugin" "foobar" {
|
||||||
name = "My foobar host set plugin"
|
name = "My foobar host set plugin"
|
||||||
host_catalog_id = boundary_host_catalog_plugin.aws_exmaple.id
|
host_catalog_id = boundary_host_catalog_plugin.aws_exmaple.id
|
||||||
preferred_endpoints = ["cidr:54.0.0.0/8"]
|
preferred_endpoints = ["cidr:54.0.0.0/8"]
|
||||||
attributes_json = jsonencode({
|
attributes_json = jsonencode({
|
||||||
"filters"="tag-key=foo",
|
"filters" = "tag-key=foo",
|
||||||
"filters"="tag-key=bar"
|
"filters" = "tag-key=bar"
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -68,9 +68,9 @@ resource "boundary_host_set_plugin" "launch" {
|
|||||||
name = "My launch host set plugin"
|
name = "My launch host set plugin"
|
||||||
host_catalog_id = boundary_host_catalog_plugin.aws_exmaple.id
|
host_catalog_id = boundary_host_catalog_plugin.aws_exmaple.id
|
||||||
sync_interval_seconds = 60
|
sync_interval_seconds = 60
|
||||||
attributes_json = jsonencode({
|
attributes_json = jsonencode({
|
||||||
"filters"="tag:development=prod,dev",
|
"filters" = "tag:development=prod,dev",
|
||||||
"filters"="launch-time=2022-01-04T*"
|
"filters" = "launch-time=2022-01-04T*"
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -80,30 +80,30 @@ resource "boundary_host_set_plugin" "launch" {
|
|||||||
# For more information about azure ad applications, please visit here:
|
# For more information about azure ad applications, please visit here:
|
||||||
# https://learn.hashicorp.com/tutorials/boundary/azure-host-catalogs#register-a-new-azure-ad-application-1
|
# https://learn.hashicorp.com/tutorials/boundary/azure-host-catalogs#register-a-new-azure-ad-application-1
|
||||||
resource "boundary_host_catalog_plugin" "azure_example" {
|
resource "boundary_host_catalog_plugin" "azure_example" {
|
||||||
name = "My azure catalog"
|
name = "My azure catalog"
|
||||||
description = "My second host catalog!"
|
description = "My second host catalog!"
|
||||||
scope_id = boundary_scope.project.id
|
scope_id = boundary_scope.project.id
|
||||||
plugin_name = "azure"
|
plugin_name = "azure"
|
||||||
|
|
||||||
# the attributes below must be generated in azure by creating an ad application
|
# the attributes below must be generated in azure by creating an ad application
|
||||||
attributes_json = jsonencode({
|
attributes_json = jsonencode({
|
||||||
"disable_credential_rotation"="true",
|
"disable_credential_rotation" = "true",
|
||||||
"tenant_id"="ARM_TENANT_ID",
|
"tenant_id" = "ARM_TENANT_ID",
|
||||||
"subscription_id"="ARM_SUBSCRIPTION_ID",
|
"subscription_id" = "ARM_SUBSCRIPTION_ID",
|
||||||
"client_id"="ARM_CLIENT_ID"
|
"client_id" = "ARM_CLIENT_ID"
|
||||||
})
|
})
|
||||||
|
|
||||||
# recommended to pass in aws secrets using a file() or using environment variables
|
# recommended to pass in aws secrets using a file() or using environment variables
|
||||||
# the secrets below must be generated in azure by creating an ad application
|
# the secrets below must be generated in azure by creating an ad application
|
||||||
secrets_json = jsonencode({
|
secrets_json = jsonencode({
|
||||||
"secret_value"="ARM_CLIENT_SECRET"
|
"secret_value" = "ARM_CLIENT_SECRET"
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
resource "boundary_host_set_plugin" "database" {
|
resource "boundary_host_set_plugin" "database" {
|
||||||
name = "My database host set plugin"
|
name = "My database host set plugin"
|
||||||
host_catalog_id = boundary_host_catalog_plugin.azure_exmaple.id
|
host_catalog_id = boundary_host_catalog_plugin.azure_exmaple.id
|
||||||
attributes_json = jsonencode({"filter"="tagName eq 'service-type' and tagValue eq 'database'"})
|
attributes_json = jsonencode({ "filter" = "tagName eq 'service-type' and tagValue eq 'database'" })
|
||||||
}
|
}
|
||||||
|
|
||||||
resource "boundary_host_set_plugin" "foodev" {
|
resource "boundary_host_set_plugin" "foodev" {
|
||||||
@@ -111,9 +111,9 @@ resource "boundary_host_set_plugin" "foodev" {
|
|||||||
host_catalog_id = boundary_host_catalog_plugin.azure_exmaple.id
|
host_catalog_id = boundary_host_catalog_plugin.azure_exmaple.id
|
||||||
preferred_endpoints = ["cidr:54.0.0.0/8"]
|
preferred_endpoints = ["cidr:54.0.0.0/8"]
|
||||||
sync_interval_seconds = 60
|
sync_interval_seconds = 60
|
||||||
attributes_json = jsonencode({
|
attributes_json = jsonencode({
|
||||||
"filter"="tagName eq 'tag-key' and tagValue eq 'foo'",
|
"filter" = "tagName eq 'tag-key' and tagValue eq 'foo'",
|
||||||
"filter"="tagName eq 'application' and tagValue eq 'dev'",
|
"filter" = "tagName eq 'application' and tagValue eq 'dev'",
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|||||||
@@ -23,13 +23,13 @@ resource "boundary_host_catalog_plugin" "aws_example" {
|
|||||||
description = "My first host catalog!"
|
description = "My first host catalog!"
|
||||||
scope_id = boundary_scope.project.id
|
scope_id = boundary_scope.project.id
|
||||||
plugin_name = "aws"
|
plugin_name = "aws"
|
||||||
attributes_json = jsonencode({"region"="us-east-1"})
|
attributes_json = jsonencode({ "region" = "us-east-1" })
|
||||||
|
|
||||||
# recommended to pass in aws secrets using a file() or using environment variables
|
# recommended to pass in aws secrets using a file() or using environment variables
|
||||||
# the secrets below must be generated in aws by creating a aws iam user with programmatic access
|
# the secrets below must be generated in aws by creating a aws iam user with programmatic access
|
||||||
secrets_json = jsonencode({
|
secrets_json = jsonencode({
|
||||||
"access_key_id"="aws_access_key_id_value",
|
"access_key_id" = "aws_access_key_id_value",
|
||||||
"secret_access_key"="aws_secret_access_key_value"
|
"secret_access_key" = "aws_secret_access_key_value"
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -39,22 +39,22 @@ resource "boundary_host_catalog_plugin" "aws_example" {
|
|||||||
# For more information about azure ad applications, please visit here:
|
# For more information about azure ad applications, please visit here:
|
||||||
# https://learn.hashicorp.com/tutorials/boundary/azure-host-catalogs#register-a-new-azure-ad-application-1
|
# https://learn.hashicorp.com/tutorials/boundary/azure-host-catalogs#register-a-new-azure-ad-application-1
|
||||||
resource "boundary_host_catalog_plugin" "azure_example" {
|
resource "boundary_host_catalog_plugin" "azure_example" {
|
||||||
name = "My azure catalog"
|
name = "My azure catalog"
|
||||||
description = "My second host catalog!"
|
description = "My second host catalog!"
|
||||||
scope_id = boundary_scope.project.id
|
scope_id = boundary_scope.project.id
|
||||||
plugin_name = "azure"
|
plugin_name = "azure"
|
||||||
|
|
||||||
# the attributes below must be generated in azure by creating an ad application
|
# the attributes below must be generated in azure by creating an ad application
|
||||||
attributes_json = jsonencode({
|
attributes_json = jsonencode({
|
||||||
"disable_credential_rotation"="true",
|
"disable_credential_rotation" = "true",
|
||||||
"tenant_id"="ARM_TENANT_ID",
|
"tenant_id" = "ARM_TENANT_ID",
|
||||||
"subscription_id"="ARM_SUBSCRIPTION_ID",
|
"subscription_id" = "ARM_SUBSCRIPTION_ID",
|
||||||
"client_id"="ARM_CLIENT_ID"
|
"client_id" = "ARM_CLIENT_ID"
|
||||||
})
|
})
|
||||||
|
|
||||||
# recommended to pass in aws secrets using a file() or using environment variables
|
# recommended to pass in aws secrets using a file() or using environment variables
|
||||||
# the secrets below must be generated in azure by creating an ad application
|
# the secrets below must be generated in azure by creating an ad application
|
||||||
secrets_json = jsonencode({
|
secrets_json = jsonencode({
|
||||||
"secret_value"="ARM_CLIENT_SECRET"
|
"secret_value" = "ARM_CLIENT_SECRET"
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
@@ -23,29 +23,29 @@ resource "boundary_host_catalog_plugin" "aws_example" {
|
|||||||
description = "My first host catalog!"
|
description = "My first host catalog!"
|
||||||
scope_id = boundary_scope.project.id
|
scope_id = boundary_scope.project.id
|
||||||
plugin_name = "aws"
|
plugin_name = "aws"
|
||||||
attributes_json = jsonencode({"region"="us-east-1"})
|
attributes_json = jsonencode({ "region" = "us-east-1" })
|
||||||
|
|
||||||
# recommended to pass in aws secrets using a file() or using environment variables
|
# recommended to pass in aws secrets using a file() or using environment variables
|
||||||
# the secrets below must be generated in aws by creating a aws iam user with programmatic access
|
# the secrets below must be generated in aws by creating a aws iam user with programmatic access
|
||||||
secrets_json = jsonencode({
|
secrets_json = jsonencode({
|
||||||
"access_key_id"="aws_access_key_id_value",
|
"access_key_id" = "aws_access_key_id_value",
|
||||||
"secret_access_key"="aws_secret_access_key_value"
|
"secret_access_key" = "aws_secret_access_key_value"
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
resource "boundary_host_set_plugin" "web" {
|
resource "boundary_host_set_plugin" "web" {
|
||||||
name = "My web host set plugin"
|
name = "My web host set plugin"
|
||||||
host_catalog_id = boundary_host_catalog_plugin.aws_exmaple.id
|
host_catalog_id = boundary_host_catalog_plugin.aws_exmaple.id
|
||||||
attributes_json = jsonencode({"filters"="tag:service-type=web"})
|
attributes_json = jsonencode({ "filters" = "tag:service-type=web" })
|
||||||
}
|
}
|
||||||
|
|
||||||
resource "boundary_host_set_plugin" "foobar" {
|
resource "boundary_host_set_plugin" "foobar" {
|
||||||
name = "My foobar host set plugin"
|
name = "My foobar host set plugin"
|
||||||
host_catalog_id = boundary_host_catalog_plugin.aws_exmaple.id
|
host_catalog_id = boundary_host_catalog_plugin.aws_exmaple.id
|
||||||
preferred_endpoints = ["cidr:54.0.0.0/8"]
|
preferred_endpoints = ["cidr:54.0.0.0/8"]
|
||||||
attributes_json = jsonencode({
|
attributes_json = jsonencode({
|
||||||
"filters"="tag-key=foo",
|
"filters" = "tag-key=foo",
|
||||||
"filters"="tag-key=bar"
|
"filters" = "tag-key=bar"
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -53,9 +53,9 @@ resource "boundary_host_set_plugin" "launch" {
|
|||||||
name = "My launch host set plugin"
|
name = "My launch host set plugin"
|
||||||
host_catalog_id = boundary_host_catalog_plugin.aws_exmaple.id
|
host_catalog_id = boundary_host_catalog_plugin.aws_exmaple.id
|
||||||
sync_interval_seconds = 60
|
sync_interval_seconds = 60
|
||||||
attributes_json = jsonencode({
|
attributes_json = jsonencode({
|
||||||
"filters"="tag:development=prod,dev",
|
"filters" = "tag:development=prod,dev",
|
||||||
"filters"="launch-time=2022-01-04T*"
|
"filters" = "launch-time=2022-01-04T*"
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -65,30 +65,30 @@ resource "boundary_host_set_plugin" "launch" {
|
|||||||
# For more information about azure ad applications, please visit here:
|
# For more information about azure ad applications, please visit here:
|
||||||
# https://learn.hashicorp.com/tutorials/boundary/azure-host-catalogs#register-a-new-azure-ad-application-1
|
# https://learn.hashicorp.com/tutorials/boundary/azure-host-catalogs#register-a-new-azure-ad-application-1
|
||||||
resource "boundary_host_catalog_plugin" "azure_example" {
|
resource "boundary_host_catalog_plugin" "azure_example" {
|
||||||
name = "My azure catalog"
|
name = "My azure catalog"
|
||||||
description = "My second host catalog!"
|
description = "My second host catalog!"
|
||||||
scope_id = boundary_scope.project.id
|
scope_id = boundary_scope.project.id
|
||||||
plugin_name = "azure"
|
plugin_name = "azure"
|
||||||
|
|
||||||
# the attributes below must be generated in azure by creating an ad application
|
# the attributes below must be generated in azure by creating an ad application
|
||||||
attributes_json = jsonencode({
|
attributes_json = jsonencode({
|
||||||
"disable_credential_rotation"="true",
|
"disable_credential_rotation" = "true",
|
||||||
"tenant_id"="ARM_TENANT_ID",
|
"tenant_id" = "ARM_TENANT_ID",
|
||||||
"subscription_id"="ARM_SUBSCRIPTION_ID",
|
"subscription_id" = "ARM_SUBSCRIPTION_ID",
|
||||||
"client_id"="ARM_CLIENT_ID"
|
"client_id" = "ARM_CLIENT_ID"
|
||||||
})
|
})
|
||||||
|
|
||||||
# recommended to pass in aws secrets using a file() or using environment variables
|
# recommended to pass in aws secrets using a file() or using environment variables
|
||||||
# the secrets below must be generated in azure by creating an ad application
|
# the secrets below must be generated in azure by creating an ad application
|
||||||
secrets_json = jsonencode({
|
secrets_json = jsonencode({
|
||||||
"secret_value"="ARM_CLIENT_SECRET"
|
"secret_value" = "ARM_CLIENT_SECRET"
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
resource "boundary_host_set_plugin" "database" {
|
resource "boundary_host_set_plugin" "database" {
|
||||||
name = "My database host set plugin"
|
name = "My database host set plugin"
|
||||||
host_catalog_id = boundary_host_catalog_plugin.azure_exmaple.id
|
host_catalog_id = boundary_host_catalog_plugin.azure_exmaple.id
|
||||||
attributes_json = jsonencode({"filter"="tagName eq 'service-type' and tagValue eq 'database'"})
|
attributes_json = jsonencode({ "filter" = "tagName eq 'service-type' and tagValue eq 'database'" })
|
||||||
}
|
}
|
||||||
|
|
||||||
resource "boundary_host_set_plugin" "foodev" {
|
resource "boundary_host_set_plugin" "foodev" {
|
||||||
@@ -96,8 +96,8 @@ resource "boundary_host_set_plugin" "foodev" {
|
|||||||
host_catalog_id = boundary_host_catalog_plugin.azure_exmaple.id
|
host_catalog_id = boundary_host_catalog_plugin.azure_exmaple.id
|
||||||
preferred_endpoints = ["cidr:54.0.0.0/8"]
|
preferred_endpoints = ["cidr:54.0.0.0/8"]
|
||||||
sync_interval_seconds = 60
|
sync_interval_seconds = 60
|
||||||
attributes_json = jsonencode({
|
attributes_json = jsonencode({
|
||||||
"filter"="tagName eq 'tag-key' and tagValue eq 'foo'",
|
"filter" = "tagName eq 'tag-key' and tagValue eq 'foo'",
|
||||||
"filter"="tagName eq 'application' and tagValue eq 'dev'",
|
"filter" = "tagName eq 'application' and tagValue eq 'dev'",
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user