Skip to content

Latest commit

 

History

History
42 lines (30 loc) · 710 Bytes

aws-stepfunction.md

File metadata and controls

42 lines (30 loc) · 710 Bytes

Step Function

  1. Get AWS Credentials

Get AWS Credentials

public static AWSCredentials GetAwsCredentials()
{
    var success = new CredentialProfileStoreChain()
        .TryGetAWSCredentials("default", out var awsCredentials);

    if (success)
    {
        return awsCredentials;
    }

    return new EnvironmentVariablesAWSCredentials();
}
// with choice, skip the steps not necessary

"CheckingIfEndDateExists": {
  "Type": "Choice",
  "Choices": [{
      "Variable": "$.StartOnly",
      "BooleanEquals": true,
      "Next": "CompleteState"
    }],
  "Default": "WaitingToEndScheduleEvent"
},
"CompleteState": {
  "Type": "Succeed"
}