ROOTPLOIT
Server: LiteSpeed
System: Linux in-mum-web1878.main-hosting.eu 5.14.0-570.21.1.el9_6.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Jun 11 07:22:35 EDT 2025 x86_64
User: u435929562 (435929562)
PHP: 7.4.33
Disabled: system, exec, shell_exec, passthru, mysql_list_dbs, ini_alter, dl, symlink, link, chgrp, leak, popen, apache_child_terminate, virtual, mb_send_mail
Upload Files
File: //opt/go/pkg/mod/github.com/aws/[email protected]/example/service/s3/usingPrivateLink/README.md
# Example

This example demonstrates how you can use the AWS SDK for Go's Amazon S3 client 
to use AWS PrivateLink for Amazon S3.

# Usage

To access S3 bucket data using the s3 interface endpoints, prefix the vpc 
endpoint with `bucket`. For eg, use endpoint url as `https://bucket.vpce-0xxxxxxx-xxx8xxg.s3.us-west-2.vpce.amazonaws.com` 
to access S3 bucket data via the associated vpc endpoint. The SDK may mutate 
this endpoint as per the input provided to work with ARNs. 

To access S3 access point data using the s3 interface endpoints, prefix the vpc 
endpoint with `accesspoint`. For eg, use endpoint url as `https://accesspoint.vpce-0xxxxxxx-xxxx8xxg.s3.us-west-2.vpce.amazonaws.com` 
to access S3 access point data via the associated vpc endpoint. The SDK may 
mutate this endpoint as per the input provided to work with ARNs.

To work with S3 control using the s3 interface endpoints, prefix the vpc endpoint 
with `control`. For eg, use endpoint url as `https://control.vpce-0xxxxxxx-xxx8xxg.s3.us-west-2.vpce.amazonaws.com` 
to use S3 Control operations with the associated vpc endpoint. The SDK may mutate 
this endpoint as per the input provided to work with ARNs.

The example will create s3 client's that use appropriate vpc endpoint url. The example 
will then create a bucket of the name provided in code. Replace the value of 
the `accountID` const with the account ID for your AWS account. The 
`vpcBucketEndpointUrl`, `vpcAccesspointEndpoint`, `vpcControlEndpoint`, `bucket`, 
`keyName`, and `accessPoint` const variables need to be updated to match the name 
of the appropriate vpc endpoint, Bucket, Object Key, and Access Point that will be 
created by the example.

```sh
AWS_REGION=<region> go run -tags example usingPrivateLink.go
```