AWS AWSCloudFormation documentation change
Summary
Removed detailed examples section including workflow creation instructions via CLI and CloudFormation templates
Security assessment
The change removes implementation examples but does not address security vulnerabilities or introduce security-related content. This appears to be documentation cleanup rather than security-related modification.
Diff
diff --git a/AWSCloudFormation/latest/TemplateReference/aws-resource-transfer-workflow.md b/AWSCloudFormation/latest/TemplateReference/aws-resource-transfer-workflow.md index f2f58d1c4..3a5319370 100644 --- a//AWSCloudFormation/latest/TemplateReference/aws-resource-transfer-workflow.md +++ b//AWSCloudFormation/latest/TemplateReference/aws-resource-transfer-workflow.md @@ -3 +3 @@ -SyntaxPropertiesReturn valuesExamples +SyntaxPropertiesReturn values @@ -118,160 +117,0 @@ A unique identifier for a workflow. -## Examples - -###### - - * Create workflow from a file - - * Create workflow from a template - - - - -### Create workflow from a file - -You can save workflow step information into a text file, and then use that file to create a workflow, as in the following example. The following example assumes you have saved your workflow steps into ` _example-file.json_ ` (in the same folder from where you run the command), and that you wish to create the workflow in the N. Virginia (us-east-1) region. - -#### - - - aws transfer create-workflow --description "example workflow from a file" --steps file://example-file.json --region us-east-1 - -### Create workflow from a template - -You can create a workflow from a template. First, open the CloudFormation console. Next, follow the instructions for deploying AWS CloudFormation stack from an existing template in [Selecting a stack template](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/cfn-using-console-create-stack-template.html) in the _AWS CloudFormation User Guide_. - -Save the following code to a file, and upload it to CloudFormation when prompted, making sure to replace items as follows: - - * Replace `your-workflow-execution-role-arn` with the ARN for an actual workflow execution role. - - * replace `arn:${AWS::Partition}:lambda:${AWS::Region}:${AWS::AccountId}:function:my-function-name` with the ARN for your Lambda function. For example, `arn:aws:lambda:us-east-2:123456789012:function:example-lambda-idp`. - - - - -#### JSON - - - { - "AWSTemplateFormatVersion": "2010-09-09", - "Resources": { - "SFTPServer": { - "Type": "AWS::Transfer::Server", - "Properties": { - "WorkflowDetails": { - "OnUpload": [ - { - "ExecutionRole": "your-workflow-execution-role-arn", - "WorkflowId": { - "Fn::GetAtt": [ - "TransferWorkflow", - "WorkflowId" - ] - } - } - ] - } - } - }, - "TransferWorkflow": { - "Type": "AWS::Transfer::Workflow", - "Properties": { - "Description": "Transfer Family Workflows Blog", - "Steps": [ - { - "Type": "COPY", - "CopyStepDetails": { - "Name": "copyToUserKey", - "DestinationFileLocation": { - "S3FileLocation": { - "Bucket": "archived-records", - "Key": "${transfer:UserName}/" - } - }, - "OverwriteExisting": "TRUE" - } - }, - { - "Type": "TAG", - "TagStepDetails": { - "Name": "tagFileForArchive", - "Tags": [ - { - "Key": "Archive", - "Value": "yes" - } - ] - } - }, - { - "Type": "CUSTOM", - "CustomStepDetails": { - "Name": "transferExtract", - "Target": "arn:${AWS::Partition}:lambda:${AWS::Region}:${AWS::AccountId}:function:my-function-name", - "TimeoutSeconds": 60 - } - }, - { - "Type": "DELETE", - "DeleteStepDetails": { - "Name": "DeleteInputFile", - "SourceFileLocation": "${original.file}" - } - } - ], - "Tags": [ - { - "Key": "Name", - "Value": "TransferFamilyWorkflows" - } - ] - } - } - } - } - -#### YAML - - - AWSTemplateFormatVersion: 2010-09-09 - Resources: - SFTPServer: - Type: 'AWS::Transfer::Server' - Properties: - WorkflowDetails: - OnUpload: - - ExecutionRole: your-workflow-execution-role-arn - WorkflowId: !GetAtt - - TransferWorkflow - - WorkflowId - TransferWorkflow: - Type: AWS::Transfer::Workflow - Properties: - Description: Transfer Family Workflows Blog - Steps: - - Type: COPY - CopyStepDetails: - Name: copyToUserKey - DestinationFileLocation: - S3FileLocation: - Bucket: archived-records - Key: ${transfer:UserName}/ - OverwriteExisting: 'TRUE' - - Type: TAG - TagStepDetails: - Name: tagFileForArchive - Tags: - - Key: Archive - Value: yes - - Type: CUSTOM - CustomStepDetails: - Name: transferExtract - Target: arn:${AWS::Partition}:lambda:${AWS::Region}:${AWS::AccountId}:function:my-function-name - TimeoutSeconds: 60 - - Type: DELETE - DeleteStepDetails: - Name: DeleteInputFile - SourceFileLocation: '${original.file}' - Tags: - - Key: Name - Value: TransferFamilyWorkflows -