Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

aws_vpc_endpoint: Correct the ARN account id #17782

Merged
merged 2 commits into from
Mar 17, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 @@ -333,8 +333,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