Skip to content

Add support associating AMIs to aws_licensemanager_association #42898

Open
@19ngaddam

Description

@19ngaddam

Description

Hi, I'd like to be able to associate an AMI with an existing self-managed AWS license like I can from the AWS console.

Looking at the provider docs, I'm only able to see the option to associate a resource_arn.

Affected Resource(s) or Data Source(s)

aws_licensemanager_association

Potential Terraform Configuration

data "aws_ami" "example" {
  most_recent = true
  owners      = ["amazon"]

  filter {
    name   = "name"
    values = ["amzn-ami-vpc-nat*"]
  }
}


resource "aws_licensemanager_association" "ami_example" {
  license_configuration_arn = aws_licensemanager_license_configuration.example.arn
  ami_ids = [ data.aws_ami.example.id ]
}

References

No response

Would you like to implement the enhancement?

No

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementRequests to existing resources that expand the functionality or scope.needs-triageWaiting for first response or review from a maintainer.service/ec2Issues and PRs that pertain to the ec2 service.service/licensemanagerIssues and PRs that pertain to the licensemanager service.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions