Provides a License Manager license configuration resource.
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"
}
}
This resource supports the following arguments:
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 map of tags to assign to the resource. If configured with a provider default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.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: 1maximumVcpus
- Resource must have maximum vCPU count in order to use the license. Default: unbounded, limit: 10000minimumCores
- Resource must have minimum core count in order to use the license. Default: 1maximumCores
- Resource must have maximum core count in order to use the license. Default: unbounded, limit: 10000minimumSockets
- Resource must have minimum socket count in order to use the license. Default: 1maximumSockets
- Resource must have maximum socket count in order to use the license. Default: unbounded, limit: 10000allowedTenancy
- 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
This resource exports the following attributes in addition to the arguments above:
arn
- The license configuration ARN.id
- The license configuration ARN.owner_account_id
- Account ID of the owner of the license configuration.tags_all
- A map of tags assigned to the resource, including those inherited from the provider default_tags
configuration block.In Terraform v1.5.0 and later, use an import
block to import license configurations using the id
. For example:
import {
to = aws_licensemanager_license_configuration.example
id = "arn:aws:license-manager:eu-west-1:123456789012:license-configuration:lic-0123456789abcdef0123456789abcdef"
}
Using terraform import
, import license configurations using the id
. For example:
% terraform import aws_licensemanager_license_configuration.example arn:aws:license-manager:eu-west-1:123456789012:license-configuration:lic-0123456789abcdef0123456789abcdef