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"
}
Expected Behaviour:
When using SSM Parameter types in CloudFormation variables,
dataresources are properly created :Creates :
Actual Behaviour:
The parameters are generated as variables :