page_title | subcategory | description |
---|---|---|
morpheus_aws_cloud Resource - terraform-provider-morpheus |
Provides a Morpheus AWS cloud resource. |
Provides a Morpheus AWS cloud resource.
Creating the AWS cloud with local credentials:
resource "morpheus_aws_cloud" "tf_example_aws_cloud" {
name = "tf-aws-demo"
code = "tf-aws-demo"
location = "colorado"
visibility = "public"
tenant_id = 1
enabled = true
automatically_power_on_vms = true
region = "us-east-1"
access_key = "ADMEI422IMWIF824"
secret_key = "34MPW23DQQFEWNGN112WEG"
inventory = "full"
vpc = "all"
appliance_url = "https://morpheus.local"
time_zone = "America/Denver"
ebs_encryption = true
datacenter_id = "tfawsdemo"
guidance = "manual"
costing = "full"
agent_install_mode = "cloudInit"
}
Creating the AWS cloud with a credential store credential:
data "morpheus_credential" "aws_credentials" {
name = "awsdemo"
}
resource "morpheus_aws_cloud" "tf_example_aws_cloud" {
name = "tf-aws-demo"
code = "tf-aws-demo"
location = "colorado"
visibility = "public"
tenant_id = 1
enabled = true
automatically_power_on_vms = true
region = "us-east-1"
credential_id = data.morpheus_credential.aws_credentials.id
inventory = "full"
vpc = "all"
appliance_url = "https://morpheus.local"
time_zone = "America/Denver"
ebs_encryption = true
datacenter_id = "tfawsdemo"
guidance = "manual"
costing = "full"
agent_install_mode = "cloudInit"
}
name
(String) The name of the cloud integrationregion
(String) The AWS region associated with the cloud integration
access_key
(String) The AWS access key used for authenticationagent_install_mode
(String) The method used to install the Morpheus agent on virtual machines provisioned in the cloud (ssh, cloudInit)appliance_url
(String) The URL used by workloads provisioned in the cloud for interacting with the Morpheus serverautomatically_power_on_vms
(Boolean) Determines whether to automatically power on cloud virtual machinescode
(String) Optional code for use with policiesconfig_management_integration_id
(String) The id of the configuration management integration associated with the AWS cloudcosting
(String) Whether to enable costing on the cloud (off, costing, full)credential_id
(Number) The ID of the credential store entry used for authenticationdatacenter_id
(String) An arbitrary id used to reference the datacenter for the cloudebs_encryption
(Boolean) Determines whether to configure default EBS volume encryption or notenabled
(Boolean) Determines whether the cloud is active or notguidance
(String) Whether to enable guidance recommendations on the cloud (manual, off)inventory
(String) Whether to import existing virtual machines (off, basic, full)location
(String) Optional location for the cloudrole_arn
(String) The AWS IAM role ARN to assume for authenticationsecret_key
(String, Sensitive) The AWS secret key used for authenticationtenant_id
(String) The id of the morpheus tenant the cloud is assigned totime_zone
(String) The time zone for the cloudtimeouts
(Block, Optional) (see below for nested schema)use_host_iam_credentials
(Boolean) Whether to use the IAM profile associated with the Morpheus server or notvisibility
(String) Determines whether the cloud is visible in sub-tenants or notvpc
(String) The VPC ID for a specific VPC (all or the AWS VPC id (vpc-25e6dae))
account_number
(String) The AWS account number associated with the cloud integrationid
(String) The ID of the cloud
Optional:
create
(String)delete
(String)read
(String)update
(String)
Import is supported using the following syntax:
terraform import morpheus_aws_cloud.tf_example_aws_cloud 1