Skip to content

Commit

Permalink
Merge pull request #17782 from shuheiktgw/correct_aws_vpc_endpoint_arn
Browse files Browse the repository at this point in the history
aws_vpc_endpoint: Correct the ARN account id
  • Loading branch information
breathingdust committed Mar 17, 2021
2 parents 8175e4e + 508d1cc commit 7d1efab
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_endpoint.go
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ func dataSourceAwsVpcEndpointRead(d *schema.ResourceData, meta interface{}) erro
Partition: meta.(*AWSClient).partition,
Service: ec2.ServiceName,
Region: meta.(*AWSClient).region,
AccountID: meta.(*AWSClient).accountid,
AccountID: aws.StringValue(vpce.OwnerId),
Resource: fmt.Sprintf("vpc-endpoint/%s", d.Id()),
}.String()
d.Set("arn", arn)
Expand Down
2 changes: 1 addition & 1 deletion aws/resource_aws_vpc_endpoint.go
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ func resourceAwsVpcEndpointRead(d *schema.ResourceData, meta interface{}) error
Partition: meta.(*AWSClient).partition,
Service: ec2.ServiceName,
Region: meta.(*AWSClient).region,
AccountID: meta.(*AWSClient).accountid,
AccountID: aws.StringValue(vpce.OwnerId),
Resource: fmt.Sprintf("vpc-endpoint/%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 @@ -329,8 +329,6 @@ for more information about connecting to alternate AWS endpoints or AWS compatib
- [`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_endpoint` data source](/docs/providers/aws/d/vpc_endpoint.html)
- [`aws_vpc_endpoint` resource](/docs/providers/aws/r/vpc_endpoint.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)
Expand Down

0 comments on commit 7d1efab

Please sign in to comment.