burrunan / gradle-s3-build-cache

An AWS S3 Gradle build cache implementation
Apache License 2.0
50 stars 19 forks source link

Reusing configuration cache in gradle #21

Open charlesng opened 1 year ago

charlesng commented 1 year ago

In my project i am using this plugin to support build cache via AWS. And before i can connect AWS i need to pass awsAccessKeyId, awsSecretKey and sessionToken values in the plugin and the values of them are different everytime when i get them from AWS. In result, I found that configuration cache cannot be reused via CI because the values are different everytime. Do we have any solution for that? 🤔

laurynas-bartkus-tg commented 1 year ago

You are most likely using short term credentials, in case you use circle CI, you can use circleci/aws-cli@ orb and use CircleCI OIDC, in that case, no credentials needs to be stored in CI/CD.