Resource: aws_resourcegroups_resource

Terraform resource for managing an AWS Resource Groups Resource.

Example Usage

Basic Usage

resource "aws_ec2_host" "example" {
  instance_family   = "t3"
  availability_zone = "us-east-1a"
  host_recovery     = "off"
  auto_placement    = "on"
}

resource "aws_resourcegroups_group" "example" {
  name = "example"
}

resource "aws_resourcegroups_resource" "example" {
  group_arn    = aws_resourcegroups_group.example.arn
  resource_arn = aws_ec2_host.example.arn
}

Argument Reference

The following arguments are required:

The following arguments are optional:

Attribute Reference

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

Timeouts

Configuration options: