To use the plugin, first declare the plugin in your pom.xml:
<plugin> <groupId>com.github.davidmoten</groupId> <artifactId>aws-maven-plugin</artifactId> <version>[plugin version]</version> <configuration> <awsAccessKey>${env.AWS_ACCESS_KEY}</awsAccessKey> <awsSecretAccessKey>${env.AWS_SECRET_ACCESS_KEY}</awsSecretAccessKey> <artifact>${project.build.directory}/my-artifact.war</artifact> <applicationName>my-application-name</applicationName> <environmentName>my-environment-name</environmentName> <region>ap-southeast-2</region> <!-- optional versionLabel --> <versionLabel>my-artifact-${maven.build.timestamp}.war</versionLabel> <!-- optional proxy config --> <httpsProxyHost>proxy.amsa.gov.au</httpsProxyHost> <httpsProxyPort>8080</httpsProxyPort> <httpsProxyUsername>user</httpsProxyUsername> <httpsProxyPassword>pass</httpsProxyPassword> </configuration> </plugin>
To use the plugin, first declare the plugin in your pom.xml:
<plugin> <groupId>com.github.davidmoten</groupId> <artifactId>aws-maven-plugin</artifactId> <version>[LATEST_VERSION]</version> <configuration> <awsAccessKey>${env.AWS_ACCESS_KEY}</awsAccessKey> <awsSecretAccessKey>${env.AWS_SECRET_ACCESS_KEY}</awsSecretAccessKey> <artifact>${project.build.directory}/my-artifact.war</artifact> <functionName>myFunction</functionName> <region>ap-southeast-2</region> <!-- optional proxy config --> <httpsProxyHost>proxy.amsa.gov.au</httpsProxyHost> <httpsProxyPort>8080</httpsProxyPort> <httpsProxyUsername>user</httpsProxyUsername> <httpsProxyPassword>pass</httpsProxyPassword> </configuration> </plugin>
{ "Version": "2012-10-17", "Statement": [ { "Sid": "Stmt1464440182000", "Effect": "Allow", "Action": [ "lambda:InvokeAsync", "lambda:InvokeFunction", "lambda:UpdateFunctionCode" ], "Resource": [ "*" ] } ] }