classmethod / gradle-aws-plugin

Gradle plugin to manage Amazon Web Services
276 stars 132 forks source link

Do not fail build if AWS is not configured #160

Closed musketyr closed 5 years ago

musketyr commented 5 years ago

There is a common idiom to use aws.accountId during the configuration phase of the deployment task:

    task deploy(type: jp.classmethod.aws.gradle.lambda.AWSLambdaMigrateFunctionTask, dependsOn: shadowJar) {
        functionName = "@project.name@"
        handler = "@defaultPackage@.@project.className@Function::@project.propertyName@"
        role = "arn:aws:iam::${aws.accountId}:role/lambda_basic_execution"
        runtime = com.amazonaws.services.lambda.model.Runtime.Java8
        zipFile = shadowJar.archivePath
        memorySize = 256
        timeout = 60
    }

For the current version, the build fails in the configuration phase if aws.accountId cannot be evaluated because of lack of credentials.

musketyr commented 5 years ago

you're welcome! any plans for release soon?