» aws_ram_resource_association

Manages a Resource Access Manager (RAM) Resource Association.

» Example Usage

resource "aws_ram_resource_association" "example" {
  resource_arn       = "${aws_subnet.example.arn}"
  resource_share_arn = "${aws_ram_resource_share.example.arn}"
}

» Argument Reference

The following arguments are supported:

  • resource_arn - (Required) Amazon Resource Name (ARN) of the resource to associate with the RAM Resource Share.
  • resource_share_arn - (Required) Amazon Resource Name (ARN) of the RAM Resource Share.

» Attributes Reference

In addition to all arguments above, the following attributes are exported:

  • id - The Amazon Resource Name (ARN) of the resource share.

» Import

RAM Resource Associations can be imported using their Resource Share ARN and Resource ARN separated by a comma, e.g.

$ terraform import aws_ram_resource_association.example arn:aws:ram:eu-west-1:123456789012:resource-share/73da1ab9-b94a-4ba3-8eb4-45917f7f4b12,arn:aws:ec2:eu-west-1:123456789012:subnet/subnet-12345678