jimsheldon
(Jim Sheldon)
April 16, 2018, 11:09pm
1
Hello!
I have been using http://plugins.drone.io/drone-plugins/drone-s3-cache/ successfully with Minio, but I can’t seem to find the right settings for it to work with S3 (ideally using the IAM role of the EC2 instance).
Has anyone used S3 successfully?
Thanks!
laszlocph
(Laszlo Fogas)
March 7, 2019, 10:45am
2
This is not with IAM roles, but a secret key pair:
kind: pipeline
name: default
steps:
- name: restore
image: plugins/s3-cache
settings:
pull: true
root: cachetest1.laszlo.cloud
# region: "us-east-1"
access_key:
from_secret: aws_access_key_id
secret_key:
from_secret: aws_secret_access_key
restore: true
- name: build
image: node
commands:
- 'echo ''{"devDependencies": {"@angular/cli": "^7.3.3" }}'' > package.json'
- npm install
- name: rebuild
image: plugins/s3-cache
settings:
pull: true
root: cachetest1.laszlo.cloud
# region: "us-east-1"
access_key:
from_secret: aws_access_key_id
secret_key:
from_secret: aws_secret_access_key
rebuild: true
mount:
- node_modules
when:
event: push
Wrote a longer summary on this and other cache plugins: https://laszlo.cloud/the-ultimate-droneci-caching-guide