Skip to content

Instantly share code, notes, and snippets.

@BenjaminKlatt
BenjaminKlatt / springdoc-download-pom.xml
Created February 14, 2021 10:00
SpringDoc OpenAPI spec download maven configuration
<plugin>
<groupId>org.springdoc</groupId>
<artifactId>springdoc-openapi-maven-plugin</artifactId>
<version>1.1</version>
<executions>
<execution>
<id>integration-test</id>
<goals>
<goal>generate</goal>
</goals>
@BenjaminKlatt
BenjaminKlatt / springdoc-tomcat-pom.xml
Created February 14, 2021 10:02
SpringDoc OpenAPI download tomcat port configuration for integration test phase
<!-- Identify a free port for the spring boot integration test phase -->
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
<version>3.2.0</version>
<executions>
<execution>
<id>reserve-tomcat-port</id>
<goals><goal>reserve-network-port</goal></goals>
<phase>process-resources</phase>
@BenjaminKlatt
BenjaminKlatt / openapi-generator-pom.xml
Created February 14, 2021 10:03
OpenAPI Generator java client generation maven configuration
<!-- REST Client generation -->
<plugin>
<groupId>org.openapitools</groupId>
<artifactId>openapi-generator-maven-plugin</artifactId>
<version>5.0.0</version>
<executions>
<execution>
<goals><goal>generate</goal></goals>
<configuration>
<generatorName>java</generatorName> // (1)
@BenjaminKlatt
BenjaminKlatt / maven-failsafe.pom.xml
Created February 14, 2021 10:05
Maven Failsafe configuration
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-failsafe-plugin</artifactId>
<version>2.22.0</version>
<executions>
<execution>
<goals>
<goal>integration-test</goal>
<goal>verify</goal>
</goals>
@BenjaminKlatt
BenjaminKlatt / integrationtest-only-pom.xml
Created February 14, 2021 10:06
Maven configuration to run integration tests only for integration test maven module
<!-- Integration Test Phase with failsafe -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.22.0</version>
<configuration>
<excludes>
<exclude>*</exclude>
</excludes>
</configuration>
$curl -fsSL https://get.pulumi.com | sh
export AWS_ACCESS_KEY_ID="...."
export AWS_SECRET_ACCESS_KEY="..."
export AWS_SESSION_TOKEN="..."
pulumi login --local
pulumi new aws-typescript
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
import * as awsx from "@pulumi/awsx";
// Create an AWS resource (S3 Bucket)
const bucket = new aws.s3.Bucket("my-bucket");
// Export the name of the bucket
export const bucketName = bucket.id;