Skip to content

CloudFormation parameters of type AWS::SSM::Parameter not converted to the good resource #261

Description

@eliauren

Expected Behaviour:

When using SSM Parameter types in CloudFormation variables, data resources are properly created :

  VPC:
    Description: The VPC Id
    Type: "AWS::SSM::Parameter::Value<String>"
    Default: vpc-id

  Subnets:
    Description: The Public subnet(s)
    Type: "AWS::SSM::Parameter::Value<List<String>>"
    Default: public-subnets

Creates :

data "aws_ssm_parameter" "vpc" {
  name = "vpc-id"
}

data "aws_ssm_parameter" "subnets" {
  name = "public-subnets"
}

Actual Behaviour:
The parameters are generated as variables :

variable vpc {
  description = "The VPC Id"
  type = string
  default = "vpc-id"
}

variable subnets {
  description = "The Public subnet(s)"
  type = string
  default = "public-subnets"
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions