Skip to content

Parameter store references are statically typed #119

@aidenvaines-cgi

Description

@aidenvaines-cgi

Under EM-822 we are looking to put an alarm on certificate expiry and we noticed the SSM parameters are statically typed.
`data "aws_ssm_parameter" "ca_cert" {
name = "/${local.name}/mesh/MESH_CA_CERT"
}

moved {
from = aws_ssm_parameter.ca_cert
to = data.aws_ssm_parameter.ca_cert
}`

These data resources are statically typed and are expecting the user of this module to have created the parameters with that exact name which could be undesired or dangerous. This should probably be a variable in the module the user is expected to declare, perhaps this mechanism could be fallback or default logic?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    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