Skip to content

Instantly share code, notes, and snippets.

View miguelperez's full-sized avatar
🏠
Working from home

Miguel miguelperez

🏠
Working from home
View GitHub Profile
@miguelperez
miguelperez / README.md
Created September 8, 2023 16:19
Use the same IAM assumed roles to connect to AWS S3 without having to pass credentials.

Intro

when using activestorage, one could set the ec2 instance with a role with access to certain aws s3 buckets.

In this case, we only define the region and bucket name to allow activestorage to connect to s3.

# in config/storage.yml
some_files:
 service: S3