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.82k stars 9.17k forks source link

[Enhancement]: Implementation of recently launched AWS License Manager Linux Subscriptions Features #30053

Open schniber opened 1 year ago

schniber commented 1 year ago

Description

The objective of this enhancements is to allow Terraform users to configure License Manager to make use of AWS recently launched License Manager Linux Subscriptions Features. -> https://aws.amazon.com/about-aws/whats-new/2022/12/aws-license-manager-commercial-linux-subscriptions-discovery-governance/ -> AWS documentation of the API is available here: https://docs.aws.amazon.com/license-manager-linux-subscriptions/latest/APIReference/API_LinuxSubscriptionsDiscoverySettings.html

This feature would allow to have good visibility on the License Tracking for the Linux Distributions that require Subscriptions.

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

None since these would be new data sources and new resources.

Potential Terraform Configuration

data aws_licensemanager_linux_subscriptions_discovery_settings {
}

resource aws_licensemanager_linux_subscriptions_discovery_settings {
  allow_update = true
  linux_subscriptions_discovery = "Enabled"
  linux_subscriptions_discovery_settings {
     organization_integration = "Enabled"
     source_regions = [
       "us-east-1",
       "eu-west-1"
     ] 
  }
}

data aws_licensemanager_linux_subscriptions_discovery_subscriptions {
  filter {
    name = "Subscription"
    operator = "contains"
    values = [
      "SAP"
    ]
  }
}

data aws_licensemanager_linux_subscriptions_discovery_instances {
  filter {
    name = "AccountID"
    operator = "equals"
    values = [
      "111111111111"
    ]
  }
}

References

Would you like to implement a fix?

None

github-actions[bot] commented 1 year ago

Community Note

Voting for Prioritization

Volunteering to Work on This Issue