Have Questions?  Need Expert Answers?  JOIN LUNCH N' LEARNS!

Delete File From S3

Prev Next
Step Details
Introduced in Version9.0.0
Last Modified in Version9.0.0
LocationIntegration > Amazon AWS > S3

The Delete File From S3 step is used to remove an existing file from an S3 instance.

Prerequisites 


Properties

Inputs

PropertyDescriptionData Type
Bucket NameName of the bucket to remove a file from.String
KeyFile key of the file intended to delete.String
RegionThe Amazon AWS Region the instance is located on.AmazonAWSRegion
Override Role CredentialsOptional input allowing the user to alter the default role used to create the folder.AssumeRoleCredentials

Override Settings

PropertyDescriptionData Type
Access Key IDID used to connect to Amazon S3.String
Secret Access KeySecret Access Key used to connect to Amazon S3.                                                                  String


Common Errors

The AWS Access Key Id You Provided Does not Exist In Our Records

If the Access Key ID is invalid or missing, the step will cause an error.

To correct this, ensure the Access Key ID is correctly inputted.

Exception Message:


Exception Stack Trace: DecisionsFramework.Design.Flow.ErrorRunningFlowStep: Error running step Substring 1[Substring] in flow [Display Steps]: Exception invoking method Substring on class StringSteps 
 ---> DecisionsFramework.LoggedException: Exception invoking method Substring on class StringSteps 
 ---> System.ArgumentOutOfRangeException: Index and length must refer to a location within the string. (Parameter 'length')  
   at System.String.Substring(Int32 startIndex, Int32 length)       
   --- End of inner exception stack trace ---  
   at DecisionsFramework.Design.Flow.StepImplementations.InvokeMethodStep.Run(StepStartData data  at DecisionsFramework.Design.Flow.FlowStep.RunStepInternal(String flowTrackingID, String stepTrackingID, KeyValuePairDataStructure[] stepRunDataValues, AbstractFlowTrackingData trackingData)  
   at DecisionsFramework.Design.Flow.FlowStep.Start(String flowTrackingID, String stepTrackingID, FlowStateData data, AbstractFlowTrackingData trackingData, RunningStepData currentStepData)       
   --- End of inner exception stack trace ---

In Order to Override Credentials, Both the Access Key ID and the Secret Access Key must be Configured

If the Access Key ID has been inputted in the Override Settings but the Secret Access Key has not, the step will cause an error.

To correct this, input the Secret Access Key prior to running the step.

Exception Message:

DecisionsFramework.Design.Flow.ErrorRunningFlowStep: Error running step Create Folder 1[CreateFolder] in flow [S3 Step Flows]: Exception invoking method CreateFolder on class AmazonS3Steps
 ---> DecisionsFramework.LoggedException: Exception invoking method CreateFolder on class AmazonS3Steps
 ---> System.Exception: In order to override credentials, both the Access Key ID and the Secret Access Key must be configured. at Decisions.AmazonAWS.S3.AmazonS3Steps.GetClient(AmazonAWSRegion region, AssumeRoleCredentials overrideCredentials, String accessKeyId, String secretAccessKey)
 at Decisions.AmazonAWS.S3.AmazonS3Steps.CreateFolder(String bucket, String folder, AmazonAWSRegion Region, AssumeRoleCredentials overrideCredentials, String accessKeyId, String secretAccessKey)
 at DecisionsFramework.Design.Flow.StepImplementations.InvokeMethodStep.Run(StepStartData data)
   --- End of inner exception stack trace --- at DecisionsFramework.Design.Flow.StepImplementations.InvokeMethodStep.Run(StepStartData data)
 at DecisionsFramework.Design.Flow.FlowStep.RunStepInternal(String flowTrackingID, String stepTrackingID, KeyValuePairDataStructure[] stepRunDataValues, AbstractFlowTrackingData trackingData)
 at DecisionsFramework.Design.Flow.FlowStep.Start(String flowTrackingID, String stepTrackingID, FlowStateData data, AbstractFlowTrackingData trackingData, RunningStepData currentStepData)
   --- End of inner exception stack trace ---

Related Information

Related Article:

Amazon AWS S3