JustinPihony / gradle-aws-plugin-reboot

Gradle plugin to manage Amazon Web Services
6 stars 5 forks source link

Added support for AWS SecretManager #13

Open musketyr opened 3 years ago

musketyr commented 3 years ago

This PR adds a support for AWS SecretManager. This can be used to easily distribute secrets for the developers.

Example:

    task downloadSecrets(type: AmazonSecretsManagerGetSecretValueTask) {
        secretName = 'application-local'
        destination = rootProject.file('../application-local.json')
    }

    tasks.withType(JavaExec) {
        dependsOn downloadSecrets
        environment(new JsonSlurper().parse(downloadSecrets.destination))
    }

The destination file is marked as output so it's only downloaded when missing

musketyr commented 3 years ago

Hi @JustinPihony! Any chance to merge and release this one any time soon?

JustinPihony commented 3 years ago

Hi @musketyr I will review this and release tomorrow if all looks good

musketyr commented 3 years ago

@JustinPihony thanks for the review! I've added the plugin into the deploy script but I'm still bit lost with your previous comment above.

musketyr commented 3 years ago

Hi @JustinPihony any way how to move this PR forward?