This project demonstrates the usage of AWS SDK for Go (v2). It provides examples of common DynamoDB operations and AWS service integrations.
- Go 1.24.2 or later
- AWS account and credentials configured
- Environment variables set up (see
.env.example)
- Clone the repository.
- Copy
.env.exampleto .env and fill in your AWS credentials. - Install dependencies:
go mod download
dynamodb/- DynamoDB operations and queriesrds/- RDS related operationsmain.go- Example usage and entry point
Create a .env file with the following variables:
AWS_ACCESS_KEY_ID=your_access_key
AWS_SECRET_ACCESS_KEY=your_secret_key
AWS_REGION=your_regionRun the example:
go run main.go