iann0036 / former2

Generate CloudFormation / Terraform / Troposphere templates from your existing AWS resources.
https://former2.com
MIT License
2.21k stars 267 forks source link

AWS::Transfer::Server SecurityPolicy #157

Open jf13 opened 3 years ago

jf13 commented 3 years ago

Just spotted that:

SecurityPolicy property should be SecurityPolicyName

https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-transfer-server.html

This is sample former2 output in CloudFormation:

Resources:
    TransferServer:
        Type: "AWS::Transfer::Server"
        Properties:
            EndpointType: "PUBLIC"
            IdentityProviderType: "SERVICE_MANAGED"
            LoggingRole: !GetAtt TransferLoggingIAMRole.Arn
            Tags: 
              - 
                Key: "aws:transfer:customHostname"
                Value: "custom.name.com"
              - 
                Key: "Name"
                Value: "custom.name"
            Protocols: 
              - "SFTP"
            SecurityPolicy: "TransferSecurityPolicy-2020-06"
iann0036 commented 3 years ago

Hey @jf13,

Thanks for spotting that one! A fix should be in now.