Resource: aws_synthetics_group_association

Provides a Synthetics Group Association resource.

Example Usage

Basic Usage

resource "aws_synthetics_group_association" "example" {
  group_name = aws_synthetics_group.example.name
  canary_arn = aws_synthetics_canary.example.arn
}

Argument Reference

The following arguments are required:

Attribute Reference

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

Import

In Terraform v1.5.0 and later, use an import block to import CloudWatch Synthetics Group Association using the canary_arn,group_name. For example:

import {
  to = aws_synthetics_group_association.example
  id = "arn:aws:synthetics:us-west-2:123456789012:canary:tf-acc-test-abcd1234,examplename"
}

Using terraform import, import CloudWatch Synthetics Group Association using the canary_arn,group_name. For example:

% terraform import aws_synthetics_group_association.example arn:aws:synthetics:us-west-2:123456789012:canary:tf-acc-test-abcd1234,examplename