Connect Your S3 Bucket Using Access Keys
Simpler setup with permanent credentials - Step-by-step guide
Security Notice
Access Keys provide permanent, long-lived credentials. Consider using IAM Role method for better security.
✅ Use Access Keys when:
- Quick testing or development
- You need simpler setup
- Can't create IAM roles
❌ Avoid Access Keys when:
- Working with production data
- Compliance requires temporary credentials
- You can use IAM roles
Step 1: Create IAM User
1.1 Open IAM Service
- Log into your AWS Console
- In the search bar at the top, type IAM and click on the service
1.2 Navigate to Users
- In the left sidebar, click Users
- Click the Create user button (blue/orange button on the right)
1.3 Enter User Details
- User name:
MigrateCloudsS3User(or any name you prefer) - AWS Management Console access: Leave UNCHECKED ❌
- This user doesn't need console access
- Only needs programmatic (API) access
- Click Next
Step 2: Create and Attach Policy
2.1 Set Permissions
- On the "Set permissions" page, select Attach policies directly
2.2 Create Custom Policy
- Click Create policy button (opens in new tab)
- Click the JSON tab
- Delete everything in the editor
- Copy and paste this policy:
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "ListBucket",
"Effect": "Allow",
"Action": [
"s3:ListBucket",
"s3:GetBucketLocation",
"s3:GetBucketVersioning",
"s3:ListBucketVersions"
],
"Resource": "arn:aws:s3:::YOUR-BUCKET-NAME"
},
{
"Sid": "ObjectOperations",
"Effect": "Allow",
"Action": [
"s3:GetObject",
"s3:GetObjectVersion",
"s3:GetObjectAttributes",
"s3:PutObject",
"s3:DeleteObject",
"s3:DeleteObjectVersion",
"s3:AbortMultipartUpload",
"s3:ListMultipartUploadParts"
],
"Resource": "arn:aws:s3:::YOUR-BUCKET-NAME/*"
},
{
"Sid": "ObjectMetadataAndTags",
"Effect": "Allow",
"Action": [
"s3:GetObjectTagging",
"s3:PutObjectTagging",
"s3:DeleteObjectTagging",
"s3:GetObjectRetention",
"s3:RestoreObject"
],
"Resource": "arn:aws:s3:::YOUR-BUCKET-NAME/*"
},
{
"Sid": "CloudWatchMetrics",
"Effect": "Allow",
"Action": [
"cloudwatch:GetMetricStatistics"
],
"Resource": "*"
}
]
}ℹ️ CloudWatch Permission: The cloudwatch:GetMetricStatisticspermission allows MigrateClouds to read your bucket's storage metrics for FREE quota calculation. This is optional but highly recommended.
✨ Advanced S3 Features: The policy includes permissions for:
- • Versioning: View and restore previous versions of files
- • Metadata: View and edit file metadata and content headers
- • Tags: Manage object tags for organization
- • Storage Classes: Change storage tiers and restore from Glacier
Note:This policy has been optimized to avoid IAM validation errors. Optional bucket configuration permissions (like GetEncryptionConfiguration) have been removed as they're not needed for core functionality.
⚠️ Important: Replace YOUR-BUCKET-NAME with your actual bucket name in all 3 Resource ARNs above (1 bucket-level permission without /*, and 2 object-level permissions with /*).
- Click Next
2.3 Name Your Policy
- Policy name:
MigrateCloudsS3AccessKeysPolicy - Description (optional): Allows MigrateClouds access via access keys
- Click Create policy
2.4 Attach Policy to User
- Go back to the user creation tab (previous tab)
- Click the 🔄 refresh icon next to "Create policy" button
- In the search box, type:
MigrateCloudsS3AccessKeysPolicy - ✅ Check the box next to your policy
- Click Next
Step 3: Review and Create User
3.1 Review Settings
- Review your configuration
- Click Create user
- You should see: "User MigrateCloudsS3User created successfully" ✅
Step 4: Create Access Keys ⚠️ IMPORTANT
4.1 Navigate to User Security Credentials
- You should now be on the Users list page
- Click on your user name: MigrateCloudsS3User
- Click the Security credentials tab
4.2 Generate Access Keys
- Scroll down to Access keys section
- Click Create access key button
4.3 Select Use Case
- Select Third-party service ✅
- Check the box: ✅ "I understand the above recommendation..."
- Click Next
💡AWS will show a warning about IAM roles being more secure - that's expected!
4.4 Set Description (Optional)
- Description tag (optional):
MigrateClouds S3 Access - Click Create access key
4.5 SAVE YOUR KEYS - CRITICAL!
You'll see your Access key ID and Secret access key. This is the ONLY timeyou'll see the secret key!
Access key ID: AKIAIOSFODNN7EXAMPLE
Secret access key: wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY
Do one of the following:
- Click Download .csv file (recommended) 📥
- Click Show and copy both keys to a password manager 🔐
- Leave this page open until you've entered the keys in MigrateClouds
⚠️ Never share these keys with anyone!
- Click Done when you've saved the keys
Step 5: Configure S3 CORS
CORS (Cross-Origin Resource Sharing) is required for browser-based uploads to work.
5.1 Navigate to Your Bucket
- Go to S3 Console
- Click on your bucket name
5.2 Edit CORS
- Click the Permissions tab
- Scroll down to Cross-origin resource sharing (CORS)
- Click Edit
- Delete any existing CORS configuration
- Paste this configuration:
[
{
"AllowedHeaders": ["*"],
"AllowedMethods": ["GET", "PUT", "POST", "DELETE", "HEAD"],
"AllowedOrigins": [
"https://migrateclouds.com",
"https://www.migrateclouds.com"
],
"ExposeHeaders": [
"ETag",
"Content-Length",
"Content-Type"
],
"MaxAgeSeconds": 3000
}
]⚠️ Critical: The ExposeHeaders MUST include "ETag" - without it, file uploads will fail!
- Click Save changes
Step 6: Connect in MigrateClouds
6.1 Open Connection Dialog
- Go to MigrateClouds Dashboard
- Navigate to Connected Services
- Click Amazon S3
- Click Connect Amazon S3 button
6.2 Fill in Connection Details
Common Fields:
- Display Email: Enter your email
- Region: Your bucket's region (e.g.,
us-east-1) - Bucket Name: Your bucket name
- Key Prefix: Optional folder path
Access Keys Fields:
- Click on the Access Keys option (right side)
- Access Key ID: Paste the key from Step 4.5
- Secret Access Key: Paste the secret from Step 4.5
6.3 Validate and Save
- Click Validate Connection button
- You should see: "S3 connection validated" ✅
- Click Save & Connect button
- Your S3 bucket is now connected!
Success! Your S3 Bucket is Connected
You can now browse, upload, download, and manage your S3 files directly from MigrateClouds!
Go to DashboardSecurity Best Practices
1. Keep your keys private
Never share your keys in public forums, emails, or code repositories.
2. Rotate keys regularly
Create new keys every 90 days and delete old ones
3. Use IAM policies to limit scope
Only grant access to specific bucket, never use admin credentials
4. Monitor key usage
Check AWS CloudTrail for suspicious activity
💡 Want better security? Consider upgrading to IAM Role method for temporary credentials!
Access Keys vs IAM Role
| Feature | Access Keys | IAM Role ✅ |
|---|---|---|
| Security | ⭐⭐⭐ Long-lived | ⭐⭐⭐⭐⭐ Temporary |
| Setup | Easy | Medium |
| Rotation | ✅ Every 90 days | ❌ Not needed |
| Best For | Testing/Dev | Production |
| AWS Recommended | ❌ Not for 3rd party | ✅ Yes |
Additional Resources
Need help? Contact us at support@t.migrateclouds.com
Last updated: October 15, 2025