Skip to content

Commit d08c4ec

Browse files
authored
Fix ID used to reference grafana_cloud_provider_aws_account (#1889)
1 parent 641478c commit d08c4ec

5 files changed

Lines changed: 5 additions & 5 deletions

docs/data-sources/cloud_provider_aws_cloudwatch_scrape_job.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ data "grafana_cloud_provider_aws_cloudwatch_scrape_job" "test" {
8383

8484
### Read-Only
8585

86-
- `aws_account_resource_id` (String) The ID assigned by the Grafana Cloud Provider API to an AWS Account resource that should be associated with this CloudWatch Scrape Job. This can be provided by the `id` attribute of the `grafana_cloud_provider_aws_account` resource.
86+
- `aws_account_resource_id` (String) The ID assigned by the Grafana Cloud Provider API to an AWS Account resource that should be associated with this CloudWatch Scrape Job. This can be provided by the `resource_id` attribute of the `grafana_cloud_provider_aws_account` resource.
8787
- `custom_namespace` (Block List) Zero or more configuration blocks to configure custom namespaces for the CloudWatch Scrape Job to scrape. Each block must have a distinct `name` attribute. When accessing this as an attribute reference, it is a list of objects. (see [below for nested schema](#nestedblock--custom_namespace))
8888
- `disabled_reason` (String) When the CloudWatch Scrape Job is disabled, this will show the reason that it is in that state.
8989
- `enabled` (Boolean) Whether the CloudWatch Scrape Job is enabled or not.

docs/data-sources/cloud_provider_aws_cloudwatch_scrape_jobs.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ data "grafana_cloud_provider_aws_cloudwatch_scrape_jobs" "test" {
3939

4040
Read-Only:
4141

42-
- `aws_account_resource_id` (String) The ID assigned by the Grafana Cloud Provider API to an AWS Account resource that should be associated with this CloudWatch Scrape Job. This can be provided by the `id` attribute of the `grafana_cloud_provider_aws_account` resource.
42+
- `aws_account_resource_id` (String) The ID assigned by the Grafana Cloud Provider API to an AWS Account resource that should be associated with this CloudWatch Scrape Job. This can be provided by the `resource_id` attribute of the `grafana_cloud_provider_aws_account` resource.
4343
- `custom_namespace` (Block List) Zero or more configuration blocks to configure custom namespaces for the CloudWatch Scrape Job to scrape. Each block must have a distinct `name` attribute. When accessing this as an attribute reference, it is a list of objects. (see [below for nested schema](#nestedblock--scrape_job--custom_namespace))
4444
- `disabled_reason` (String) When the CloudWatch Scrape Job is disabled, this will show the reason that it is in that state.
4545
- `enabled` (Boolean) Whether the CloudWatch Scrape Job is enabled or not.

docs/resources/cloud_provider_aws_cloudwatch_scrape_job.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ resource "grafana_cloud_provider_aws_cloudwatch_scrape_job" "test" {
7171

7272
### Required
7373

74-
- `aws_account_resource_id` (String) The ID assigned by the Grafana Cloud Provider API to an AWS Account resource that should be associated with this CloudWatch Scrape Job. This can be provided by the `id` attribute of the `grafana_cloud_provider_aws_account` resource.
74+
- `aws_account_resource_id` (String) The ID assigned by the Grafana Cloud Provider API to an AWS Account resource that should be associated with this CloudWatch Scrape Job. This can be provided by the `resource_id` attribute of the `grafana_cloud_provider_aws_account` resource.
7575
- `name` (String) The name of the CloudWatch Scrape Job. Part of the Terraform Resource ID.
7676
- `stack_id` (String) The Stack ID of the Grafana Cloud instance. Part of the Terraform Resource ID.
7777

internal/resources/cloudprovider/data_source_aws_cloudwatch_scrape_job.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ var (
3232
Computed: true,
3333
},
3434
"aws_account_resource_id": schema.StringAttribute{
35-
Description: "The ID assigned by the Grafana Cloud Provider API to an AWS Account resource that should be associated with this CloudWatch Scrape Job. This can be provided by the `id` attribute of the `grafana_cloud_provider_aws_account` resource.",
35+
Description: "The ID assigned by the Grafana Cloud Provider API to an AWS Account resource that should be associated with this CloudWatch Scrape Job. This can be provided by the `resource_id` attribute of the `grafana_cloud_provider_aws_account` resource.",
3636
Computed: true,
3737
},
3838
"role_arn": schema.StringAttribute{

internal/resources/cloudprovider/resource_aws_cloudwatch_scrape_job.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ func (r resourceAWSCloudWatchScrapeJob) Schema(ctx context.Context, req resource
9292
Default: booldefault.StaticBool(true),
9393
},
9494
"aws_account_resource_id": schema.StringAttribute{
95-
Description: "The ID assigned by the Grafana Cloud Provider API to an AWS Account resource that should be associated with this CloudWatch Scrape Job. This can be provided by the `id` attribute of the `grafana_cloud_provider_aws_account` resource.",
95+
Description: "The ID assigned by the Grafana Cloud Provider API to an AWS Account resource that should be associated with this CloudWatch Scrape Job. This can be provided by the `resource_id` attribute of the `grafana_cloud_provider_aws_account` resource.",
9696
Required: true,
9797
},
9898
"regions_subset_override": schema.SetAttribute{

0 commit comments

Comments
 (0)