Skip to content

Commit

Permalink
Merge pull request hashicorp#40284 from jeremychauvet/b-route53_profi…
Browse files Browse the repository at this point in the history
…les_tags

fix(route53profiles): improve documentation about tags usage.
  • Loading branch information
ewbankkit authored Dec 5, 2024
2 parents ee988f4 + d172fa0 commit fbc0ab8
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 5 deletions.
10 changes: 8 additions & 2 deletions website/docs/r/route53profiles_association.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -27,24 +27,30 @@ resource "aws_route53profiles_association" "example" {
name = "example"
profile_id = aws_route53profiles_profile.example.id
resource_id = aws_vpc.example.id
tags = {
Environment = "dev"
}
}
```

## Argument Reference

The following arguments are required:
This resource supports the following arguments:

* `name` - (Required) Name of the Profile Association. Must match a regex of `(?!^[0-9]+$)([a-zA-Z0-9\\-_' ']+)`.
* `profile_id` - (Required) ID of the profile associated with the VPC.
* `resource_id` - (Required) Resource ID of the VPC the profile to be associated with.
* `tags` - (Optional) Map of tags to assign to the resource. If configured with a provider [`default_tags` configuration block](https://registry.terraform.io/providers/hashicorp/aws/latest/docs#default_tags-configuration-block) present, tags with matching keys will overwrite those defined at the provider-level.

## Attribute Reference

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

* `id` - ID of the Profile Association.
* `status` - Status of the Profile Association. See the [AWS docs](https://docs.aws.amazon.com/Route53/latest/APIReference/API_route53profiles_Profile.html) for valid values.
* `status` - Status of the Profile Association.
* `status_message` - Status message of the Profile Association.
* `tags_all` - Map of tags assigned to the resource, including those inherited from the provider [`default_tags` configuration block](https://registry.terraform.io/providers/hashicorp/aws/latest/docs#default_tags-configuration-block).

## Timeouts

Expand Down
10 changes: 7 additions & 3 deletions website/docs/r/route53profiles_profile.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,18 @@ Terraform resource for managing an AWS Route 53 Profile.
```terraform
resource "aws_route53profiles_profile" "example" {
name = "example"
tags = {
Environment = "dev"
}
}
```

## Argument Reference

The following arguments are required:
This resource supports the following arguments:

* `name` - (Required) Name of the Profile.
* `tags` - (Optional) Map of tags to assign to the resource. If configured with a provider [`default_tags` configuration block](https://registry.terraform.io/providers/hashicorp/aws/latest/docs#default_tags-configuration-block) present, tags with matching keys will overwrite those defined at the provider-level.

## Attribute Reference

Expand All @@ -33,9 +37,9 @@ This resource exports the following attributes in addition to the arguments abov
* `arn` - ARN of the Profile.
* `id` - ID of the Profile.
* `name` - Name of the Profile.
* `status` - Status of the Profile. Valid values [AWS docs](https://docs.aws.amazon.com/Route53/latest/APIReference/API_route53profiles_Profile.html)
* `share_status` - Share status of the Profile.
* `status` - Status of the Profile.
* `status_message` - Status message of the Profile.
* `share_status` - Share status of the Profile. Valid values [AWS docs](https://docs.aws.amazon.com/Route53/latest/APIReference/API_route53profiles_Profile.html)
* `tags_all` - Map of tags assigned to the resource, including those inherited from the provider [`default_tags` configuration block](https://registry.terraform.io/providers/hashicorp/aws/latest/docs#default_tags-configuration-block).

## Timeouts
Expand Down

0 comments on commit fbc0ab8

Please sign in to comment.