hashicorp / terraform-provider-aws

The AWS Provider enables Terraform to manage AWS resources.
https://registry.terraform.io/providers/hashicorp/aws
Mozilla Public License 2.0
9.87k stars 9.21k forks source link

[Enhancement]: Activate License from received grants #39727

Open fllaca opened 1 month ago

fllaca commented 1 month ago

Description

I'm using aws_licensemanager_grant to share marketplace licenses with child accounts in my AWS organisation. However, after creating a license grant, it must be manually activated via the AWS CLI using the following command:

aws license-manager create-grant-version --grant-arn arn:aws:license-manager::123456789:grant:g-123456789abcdef123456789 --client-token=123456789 --status ACTIVE

Proposal:

I propose introducing a new Terraform resource, aws_licensemanager_grant_activator, which will automate the activation of a License Manager grant. This resource should follow a similar pattern to the existing aws_licensemanager_grant_accepter resource and handle the license activation process seamlessly within Terraform.

Affected Resource(s) and/or Data Source(s)

No response

Potential Terraform Configuration

resource "aws_licensemanager_grant_activator" "test" {
  grant_arn = "arn:aws:license-manager::123456789012:grant:g-1cf9fba4ba2f42dcab11c686c4b4d329"
}

References

https://docs.aws.amazon.com/license-manager/latest/userguide/grant-acceptance.html

Would you like to implement a fix?

None

github-actions[bot] commented 1 month ago

Community Note

Voting for Prioritization

Volunteering to Work on This Issue