Resource: aws_licensemanager_grant

Provides a License Manager grant. This allows for sharing licenses with other AWS accounts.

Example Usage

resource "aws_licensemanager_grant" "test" {
  name = "share-license-with-account"
  allowed_operations = [
    "ListPurchasedLicenses",
    "CheckoutLicense",
    "CheckInLicense",
    "ExtendConsumptionLicense",
    "CreateToken"
  ]
  license_arn = "arn:aws:license-manager::111111111111:license:l-exampleARN"
  principal   = "arn:aws:iam::111111111112:root"
  home_region = "us-east-1"
}

Argument Reference

This resource supports the following arguments:

Attribute Reference

This resource exports the following attributes in addition to the arguments above:

Import

In Terraform v1.5.0 and later, use an import block to import aws_licensemanager_grant using the grant arn. For example:

import {
  to = aws_licensemanager_grant.test
  id = "arn:aws:license-manager::123456789011:grant:g-01d313393d9e443d8664cc054db1e089"
}

Using terraform import, import aws_licensemanager_grant using the grant arn. For example:

% terraform import aws_licensemanager_grant.test arn:aws:license-manager::123456789011:grant:g-01d313393d9e443d8664cc054db1e089