pulumi-aws-native icon indicating copy to clipboard operation
pulumi-aws-native copied to clipboard

cf2pulumi: CloudFormation resource attributes DeletionPolicy / UpdateReplacePolicy expected to be mappings

Open PatMyron opened this issue 4 years ago • 4 comments

Steps to reproduce

https://www.pulumi.com/cf2pulumi/

Resources:
  RDSDBCluster:
    Type: AWS::RDS::DBCluster
    DeletionPolicy: Delete
    UpdateReplacePolicy: Delete
    Properties:
      Engine: aurora
      MasterUsername: MasterUsername
      MasterUserPassword: MasterUserPassword

Expected: Some CloudFormation resource attributes can be strings Actual: failed to render template: 'DeletionPolicy' must be a mapping failed to render template: 'UpdateReplacePolicy' must be a mapping https://github.com/pulumi/pulumi-aws-native/blob/886a1d605d958f90c44936a1ce254f92d6fce774/provider/pkg/cf2pulumi/renderer.go#L879-L883

PatMyron avatar Sep 30 '21 20:09 PatMyron

Similar: unsupported property 'Condition' in resource 'Resource':

Parameters:
  CreateResource:
    Type: String
Conditions:
  ShouldCreateResource:
    !Equals [true, !Ref CreateResource]
Resources:
  Resource:
    Type: AWS::SNS::Topic
    Condition: ShouldCreateResource

PatMyron avatar Oct 07 '21 23:10 PatMyron

Stumbled upon this today. Any developments? Any suggestions?

lpcinelli avatar Feb 17 '22 03:02 lpcinelli

Checking in here

j-fulbright avatar Feb 22 '24 16:02 j-fulbright