fix(aws/lambda): Parameterize hard-coded startingPosition field for lambda event sources
MODIFY
clouddriver-lambda/src/main/java/com/netflix/spinnaker/clouddriver/lambda/deploy/description/UpsertLambdaFunctionEventMappingDescription.java
clouddriver-lambda/src/main/java/com/netflix/spinnaker/clouddriver/lambda/deploy/description/UpsertLambdaFunctionEventMappingDescription.java
@@ -28,4 +28,5 @@ public class UpsertLambdaFunctionEventMappingDescription extends AbstractLambdaF
Boolean enabled = false;
String eventSourceArn = null;
String uuid = null;
+ String startingPosition = null;
}

MODIFY
clouddriver-lambda/src/main/java/com/netflix/spinnaker/clouddriver/lambda/deploy/ops/UpsertLambdaEventSourceAtomicOperation.java
clouddriver-lambda/src/main/java/com/netflix/spinnaker/clouddriver/lambda/deploy/ops/UpsertLambdaEventSourceAtomicOperation.java
@@ -82,7 +82,7 @@ public class UpsertLambdaEventSourceAtomicOperation
.withFunctionName(cache.getFunctionArn())
.withBatchSize(description.getBatchsize())
.withEnabled(description.getEnabled())
- .withStartingPosition("LATEST")
+ .withStartingPosition(description.getStartingPosition())
.withEventSourceArn(description.getEventSourceArn());
CreateEventSourceMappingResult result = client.createEventSourceMapping(request);

fix(aws/lambda): Parameterize hard-coded startingPosition field for lambda event sources (#4872)

Co-authored-by: smaniyedath <shyam_maniyedath@intuit.com>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>