» Resource: aws_licensemanager_license_configuration

Provides a License Manager license configuration resource.

» Example Usage

resource "aws_licensemanager_license_configuration" "example" {
  name                     = "Example"
  description              = "Example"
  license_count            = 10
  license_count_hard_limit = true
  license_counting_type    = "Socket"

  license_rules = [
    "#minimumSockets=2"
  ]

  tags = {
    foo = "barr"
  }
}

» Argument Reference

The following arguments are supported:

  • name - (Required) Name of the license configuration.
  • description - (Optional) Description of the license configuration.
  • license_count - (Optional) Number of licenses managed by the license configuration.
  • license_count_hard_limit - (Optional) Sets the number of available licenses as a hard limit.
  • license_counting_type - (Required) Dimension to use to track license inventory. Specify either vCPU, Instance, Core or Socket.
  • license_rules - (Optional) Array of configured License Manager rules.
  • tags - (Optional) A mapping of tags to assign to the resource.

» Rules

License rules should be in the format of #RuleType=RuleValue. Supported rule types:

  • minimumVcpus - Resource must have minimum vCPU count in order to use the license. Default: 1
  • maximumVcpus - Resource must have maximum vCPU count in order to use the license. Default: unbounded, limit: 10000
  • minimumCores - Resource must have minimum core count in order to use the license. Default: 1
  • maximumCores - Resource must have maximum core count in order to use the license. Default: unbounded, limit: 10000
  • minimumSockets - Resource must have minimum socket count in order to use the license. Default: 1
  • maximumSockets - Resource must have maximum socket count in order to use the license. Default: unbounded, limit: 10000
  • allowedTenancy - Defines where the license can be used. If set, restricts license usage to selected tenancies. Specify a comma delimited list of EC2-Default, EC2-DedicatedHost, EC2-DedicatedInstance

» Attributes Reference

In addition to all arguments above, the following attributes are exported:

  • id - The license configuration ARN.

» Import

License configurations can be imported using the id, e.g.

$ terraform import aws_licensemanager_license_configuration.example arn:aws:license-manager:eu-west-1:123456789012:license-configuration:lic-0123456789abcdef0123456789abcdef