Skip to content

Commit

Permalink
aws_vpc: Correct the ARN account id (#17729)
Browse files Browse the repository at this point in the history
* aws_vpc: Correct the ARN account id

* Remove aws_vpc from the document
  • Loading branch information
shuheiktgw authored Mar 24, 2021
1 parent 87d504a commit 733468e
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.go
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ func dataSourceAwsVpcRead(d *schema.ResourceData, meta interface{}) error {
Partition: meta.(*AWSClient).partition,
Service: ec2.ServiceName,
Region: meta.(*AWSClient).region,
AccountID: meta.(*AWSClient).accountid,
AccountID: aws.StringValue(vpc.OwnerId),
Resource: fmt.Sprintf("vpc/%s", d.Id()),
}.String()
d.Set("arn", arn)
Expand Down
2 changes: 1 addition & 1 deletion aws/resource_aws_vpc.go
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ func resourceAwsVpcRead(d *schema.ResourceData, meta interface{}) error {
Partition: meta.(*AWSClient).partition,
Service: ec2.ServiceName,
Region: meta.(*AWSClient).region,
AccountID: meta.(*AWSClient).accountid,
AccountID: aws.StringValue(vpc.OwnerId),
Resource: fmt.Sprintf("vpc/%s", d.Id()),
}.String()
d.Set("arn", arn)
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 @@ -335,8 +335,6 @@ This functionality is only supported in the following resources:
- [`aws_synthetics_canary` resource](/docs/providers/aws/r/synthetics_canary.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)
- [`aws_vpc` resource](/docs/providers/aws/r/vpc.html)
- [`aws_vpn_connection` resource](/docs/providers/aws/r/vpn_connection.html)
- [`aws_vpn_gateway` data source](/docs/providers/aws/d/vpn_gateway.html)
- [`aws_vpn_gateway` resource](/docs/providers/aws/r/vpn_gateway.html)
Expand Down

0 comments on commit 733468e

Please sign in to comment.