The following code creates a resource named "aws_alb_target_group_attachment" in the current AWS account. The resource has the following fields:
Name: The name of the target group attachment
Location: The location of the target group attachment, in the target group's Amazon Simple Storage Service (Amazon S3) bucket
Type: Attachment type, either "Static" or "Dynamic"
The following fields are optional:
DependsOn: A list of other resources that the target group attachment depends on (in the same AWS account)
The following fields are required:
Name: The name of the target group
Resource: The name of the target group's Amazon S3 bucket
The following code creates an attachment named "MyAWSResource" in the target group's Amazon S3 bucket that is of type "Static.