drone-plugins / drone-s3

Drone plugin for publishing artifacts to Amazon S3
http://plugins.drone.io/drone-plugins/drone-s3
Apache License 2.0
37 stars 65 forks source link

Unable to use drone secret for aws key and token. #30

Closed s3than closed 8 years ago

s3than commented 8 years ago

Using secrets returns the following error, using secrets for other plugins is fine.

InvalidAccessKeyId: The AWS Access Key Id you provided does not exist in our records. status code: 403, request id: EFA7165BFF6E8129

tboerger commented 8 years ago

The error message comes from s3, you seem to define a wrong access key.

s3than commented 8 years ago

Hi @tboerger It was because I did the following

  s3:
    image: plugins/s3
    acl: public-read
    region: "us-east-1"
    bucket: "my-bucket-name"
    access_key: $$AWS_ACCESS_KEY_ID
    secret_key: $$AWS_SECRET_ACCESS_KEY
    source: public/**/*
    strip_prefix: public/
    target: /target/location
    encryption: AES256
    exclude:
      - **/*.xml

However removing and using the secrets as ENV works fine