Access AWS Management Console
In the VPC interface
In the Create endpoint interface
S3-Endpoint
In services, we find S3
Successfully created VPC endpoint
Access to S3 bucket
In the bucket interface
{
"Statement": [
{
"Action": "s3:*",
"Effect": "Deny",
"Resource": "arn:aws:s3:::BUCKET_NAME/*",
"Condition": {
"StringNotEquals": {
"aws:sourceVpce": "VPC_ENDPOINT_ID"
}
},
"Principal": "*"
}
]
}
- Replace your **BUCKET NAME** and **VPC ENDPOINT ID**.
aws s3api head-object --key app1/file1 --profile user1 --bucket ${bucket}
Return to VPC endpoint interface
In the Manage route tables interface
aws s3api head-object --key app1/file1 --profile user1 --bucket ${bucket}