ACS Setup Examples
Examples using the S3 compatible API to help users get onboard and start using ACS
S3 Examples (boto3)
These examples demonstrate S3-compatible operations using boto3, the AWS SDK for Python. They showcase essential S3 operations including bucket management, object CRUD operations, copying, and multipart uploads with proper error handling and resource cleanup.
Prerequisites
- Python 3.9+
- Network access to your S3 endpoint
1) Create virtual environment and install dependencies with UV
2) Configure your environment for an S3-compatible endpoint
Set the endpoint, region, addressing style, and credentials so boto3 targets ACS S3-compatible store:
3) Run the examples
Run the Python sample scripts to try bucket and object workflows. They handle setup and cleanup for you.
Want to understand how the client setup works? Each example includes detailed comments explaining endpoint configuration, credential handling, and addressing styles. Check out the Python examples in our GitHub repository.
S3 Examples (Go, AWS SDK v2)
These examples demonstrate S3-compatible operations using the AWS SDK for Go v2. They showcase essential S3 operations including bucket management, object CRUD operations, copying, and multipart uploads with proper error handling and resource cleanup.
Prerequisites
- Go 1.20+
- Network access to your S3 endpoint
1) Initialize module and download deps
2) Configure your environment for an S3-compatible endpoint
Set these variables so the Go SDK targets your S3-compatible store:
3) Run the examples
Run the Go sample programs to confirm the same workflows with ACS.
Curious about the Go SDK configuration? The examples show how to set up the AWS SDK for Go v2 with custom endpoints and configuration. View the complete Go examples in our GitHub repository.
S3 Examples (AWS CLI)
These examples demonstrate S3-compatible operations using the AWS CLI. They showcase essential S3 operations including bucket management, object CRUD operations, copying, and multipart uploads with proper configuration, error handling, and resource cleanup.
Prerequisites
- AWS CLI v2 (recommended) or v1
- Network access to your S3 endpoint
- bash shell
1) Install required tools
These examples require aws (CLI), jq, and openssl. If you don't have them installed:
2) Configure your environment for an S3-compatible endpoint
To use these examples with your S3-compatible object store, set the following standard AWS variables and one ACS-specific variable for the endpoint:
Configuration Options
You can configure the AWS CLI to work with ACS in several ways:
Option A: Using AWS CLI configure command
Configure your default AWS CLI profile for ACS:
Option B: Manual credentials file setup
Create or edit ~/.aws/credentials:
Create or edit ~/.aws/config:
Option C: Using the configuration helper (creates custom profile)
Set your credentials and run the helper script:
Note: This option creates a custom acs-examples profile without affecting your default AWS configuration.
3) Run the examples
Use the shell scripts to test the workflows with your chosen AWS CLI profile.
Need help with AWS CLI configuration? The examples include several configuration approaches with detailed explanations. Find complete CLI setup guides and troubleshooting tips in our GitHub repository.
Notes
- Default Profile (Options A & B): Uses your default AWS CLI configuration
- Custom Profile (Option C): Creates acs-examples profile without affecting your default AWS settings
- Addressing: Virtual-hosted-style addressing is configured for optimal compatibility
Complete Code Examples
Find detailed client initialization guides, complete working examples, and additional language integrations in our GitHub repository.
View on GitHub