Skip to content

Commit

Permalink
Merge pull request #17758 from shuheiktgw/correct_vpc_dhcp_options_arn
Browse files Browse the repository at this point in the history
aws_vpc_dhcp_options: Correct the ARN account id
  • Loading branch information
breathingdust authored Mar 17, 2021
2 parents 7d1efab + 53151cd commit 8275c97
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion aws/data_source_aws_vpc_dhcp_options.go
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ func dataSourceAwsVpcDhcpOptionsRead(d *schema.ResourceData, meta interface{}) e
Partition: meta.(*AWSClient).partition,
Service: ec2.ServiceName,
Region: meta.(*AWSClient).region,
AccountID: meta.(*AWSClient).accountid,
AccountID: aws.StringValue(output.DhcpOptions[0].OwnerId),
Resource: fmt.Sprintf("dhcp-options/%s", d.Id()),
}.String()

Expand Down
2 changes: 1 addition & 1 deletion aws/resource_aws_vpc_dhcp_options.go
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ func resourceAwsVpcDhcpOptionsRead(d *schema.ResourceData, meta interface{}) err
Partition: meta.(*AWSClient).partition,
Service: ec2.ServiceName,
Region: meta.(*AWSClient).region,
AccountID: meta.(*AWSClient).accountid,
AccountID: aws.StringValue(opts.OwnerId),
Resource: fmt.Sprintf("dhcp-options/%s", d.Id()),
}.String()

Expand Down
2 changes: 0 additions & 2 deletions website/docs/index.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -325,8 +325,6 @@ for more information about connecting to alternate AWS endpoints or AWS compatib
- [`aws_ssm_parameter` data source](/docs/providers/aws/d/ssm_parameter.html)
- [`aws_ssm_parameter` resource](/docs/providers/aws/r/ssm_parameter.html)
- [`aws_synthetics_canary` resource](/docs/providers/aws/r/synthetics_canary.html)
- [`aws_vpc_dhcp_options` data source](/docs/providers/aws/d/vpc_dhcp_options.html)
- [`aws_vpc_dhcp_options` resource](/docs/providers/aws/r/vpc_dhcp_options.html)
- [`aws_vpc_endpoint_service` data source](/docs/providers/aws/d/vpc_endpoint_service.html)
- [`aws_vpc_endpoint_service` resource](/docs/providers/aws/r/vpc_endpoint_service.html)
- [`aws_vpc` data source](/docs/providers/aws/d/vpc.html)
Expand Down

0 comments on commit 8275c97

Please sign in to comment.