Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot find sydney region #119

Open
domingoladron opened this issue Jul 29, 2017 · 1 comment
Open

Cannot find sydney region #119

domingoladron opened this issue Jul 29, 2017 · 1 comment

Comments

@domingoladron
Copy link

domingoladron commented Jul 29, 2017

Howdy,

I am trying to deploy things to the sydney region, thusly

`import com.amazonaws.auth.policy.Policy
import com.amazonaws.auth.policy.Principal
import com.amazonaws.auth.policy.Statement
import com.amazonaws.auth.policy.actions.S3Actions
import com.amazonaws.auth.policy.resources.S3BucketResource
import com.amazonaws.auth.policy.resources.S3ObjectResource
import com.amazonaws.services.s3.model.ObjectMetadata
import jp.classmethod.aws.gradle.s3.AmazonS3FileUploadTask
import jp.classmethod.aws.gradle.s3.BucketPolicyTask
import jp.classmethod.aws.gradle.s3.CreateBucketTask
import jp.classmethod.aws.gradle.s3.DeleteBucketTask

def primaryRegionName = "ap-southeast-2"
def codeDeployBucketName = 'coactive-deploy-s3-bucket'

apply plugin: "jp.classmethod.aws.s3"
aws {
profileName = "default"
region = primaryRegionName
}
task createDeploymentBucket(
type: CreateBucketTask) {
bucketName codeDeployBucketName
region primaryRegionName
ifNotExists true
}

`

And yet when I do so, I get the following error

`Execution failed for task ':createDeploymentBucket'.

Cannot create enum from "ap-southeast-2" value!
`

Um, lil help? My assumption is this is related to the version of aws sdk used, but being reasonably new to gradle in general, and this plugin in particular, I couldn't say for sure.

@dhoer
Copy link

dhoer commented Jan 11, 2018

See gradle/gradle#4012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants