-
Notifications
You must be signed in to change notification settings - Fork 289
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CR: Move outputs and variables to its own files
- Loading branch information
Showing
3 changed files
with
89 additions
and
85 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
# Copyright (c) HashiCorp, Inc. | ||
# SPDX-License-Identifier: BUSL-1.1 | ||
|
||
output "bucket_access_key_id" { | ||
value = module.iam_user.access_key_id | ||
} | ||
|
||
output "bucket_secret_access_key" { | ||
sensitive = true | ||
value = module.iam_user.secret_access_key | ||
} | ||
|
||
output "bucket_name" { | ||
value = module.storage_bucket.bucket_name | ||
} | ||
|
||
output "host_set_filter" { | ||
value = module.target_tags.tag_string | ||
} | ||
|
||
output "target_public_ip" { | ||
value = module.target.target_public_ips | ||
} | ||
|
||
output "target_private_ip" { | ||
value = module.target.target_private_ips | ||
} | ||
|
||
output "target_ssh_user" { | ||
value = "ubuntu" | ||
} | ||
|
||
output "worker_ip" { | ||
value = module.worker.worker_ips | ||
} | ||
|
||
output "worker_tokens" { | ||
sensitive = true | ||
value = module.worker.worker_tokens | ||
} | ||
|
||
output "region" { | ||
value = var.aws_region | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
# Copyright (c) HashiCorp, Inc. | ||
# SPDX-License-Identifier: BUSL-1.1 | ||
|
||
variable "aws_region" { | ||
description = "The AWS region to deploy resources in." | ||
type = string | ||
default = "us-east-1" | ||
} | ||
|
||
variable "hcp_boundary_cluster_id" { | ||
description = "The ID of the HCP Boundary cluster. If on HCP int, prepend the cluster ID with 'int-'. If on HCP dev, prepend the cluster ID with 'dev-'." | ||
type = string | ||
} | ||
|
||
variable "boundary_zip_path" { | ||
description = "Path to Boundary zip file. Version should be a linux_amd64 enterprise variant." | ||
type = string | ||
} | ||
|
||
variable "boundary_license_path" { | ||
description = "Path to the Boundary license file" | ||
type = string | ||
} | ||
|
||
variable "aws_ssh_keypair_name" { | ||
description = "Name of the AWS EC2 keypair to use for SSH access" | ||
type = string | ||
} | ||
|
||
variable "aws_ssh_private_key_path" { | ||
description = "Path to the private key file for the AWS EC2 keypair" | ||
type = string | ||
} | ||
|
||
variable "worker_count" { | ||
description = "Number of workers to create" | ||
type = number | ||
default = 1 | ||
} | ||
|
||
variable "target_count" { | ||
description = "Number of targets to create" | ||
type = number | ||
default = 1 | ||
} |