davidmoten / aws-maven-plugin

Deploys resources to AWS using maven

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

deployS3: org.apache.maven.plugin.MojoExecutionException: The region must be specified either in the plugin configuration (region), environment variable (AWS_REGION), system property (aws.region), AWS shared configuration file or instance metadata.

beautylim opened this issue · comments

commented

This is how i use:
<plugin>
<groupId>com.github.davidmoten</groupId>
<artifactId>aws-maven-plugin</artifactId>
<executions>
<execution>
<id>upload-jenkins-files</id>
<phase>package</phase>
<goals>
<goal>deployS3</goal>
</goals>
<configuration>
<bucketName>${bucket.name}</bucketName>
<inputDirectory>${project.basedir}/src/build/jenkins</inputDirectory>
<outputBasePath>${jenkins.bucket.folder}</outputBasePath>
<awsAccessKey>${access.key}</awsAccessKey>
<awsSecretAccessKey>${secret.key}</awsSecretAccessKey>
<region>${region}</region>
</configuration>
</execution>
</executions>
</plugin>

ok thanks, I'll have a look