https://github.com/kramerc/files.kramerc.social
Files bucket for the kramerc.social Mastodon instance
https://github.com/kramerc/files.kramerc.social
aws cloudfront cloudfront-distribution mastodon s3 s3-bucket terraform
Last synced: 4 months ago
JSON representation
Files bucket for the kramerc.social Mastodon instance
- Host: GitHub
- URL: https://github.com/kramerc/files.kramerc.social
- Owner: kramerc
- Created: 2023-04-13T03:37:21.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2025-03-02T03:17:55.000Z (over 1 year ago)
- Last Synced: 2025-03-02T04:21:12.639Z (over 1 year ago)
- Topics: aws, cloudfront, cloudfront-distribution, mastodon, s3, s3-bucket, terraform
- Language: HCL
- Homepage:
- Size: 162 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# files.kramerc.social
The Mastodon files bucket for [kramerc.social](https://kramerc.social), an Amazon S3 bucket and CloudFront distribution managed with Terraform.
## Set up
Attach the following IAM policies to your IAM user:
- AmazonDynamoDBFullAccess
- AmazonRoute53FullAccess
- AmazonS3FullAccess
- AWSCertificateManagerFullAccess
- CloudFrontFullAccess
- IAMFullAccess
[Custom policies](https://docs.aws.amazon.com/IAM/latest/UserGuide/access_controlling.html) can be created to further lockdown the IAM user to the specific resources and actions used by this module.
Obtain [access keys](https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_access-keys.html) for your AWS IAM user.
```
export AWS_ACCESS_KEY_ID=xxx
export AWS_SECRET_ACCESS_KEY=xxx
```
Then init:
```shell
terraform init
```
Terraform is now ready.