Skip to content

Name of SSM parameter to store DAPA lambda function needs to be unique #184

Closed
@ngachung

Description

@ngachung

The following ssm parameter name does not allow for multiple deployments in the same AWS account as the following error is encountered during deployment

Error: error creating SSM parameter (/unity/unity-ds/api-gateway/integrations/collections-dapa-function-name): ParameterAlreadyExists: The parameter already exists. To overwrite this value, set the overwrite option in the request to true.

  on .terraform/modules/unity_cumulus_lambda/main.tf line 214, in resource "aws_ssm_parameter" "cumulus_collections_dapa_ssm_param":
 214: resource "aws_ssm_parameter" "cumulus_collections_dapa_ssm_param" {
resource "aws_ssm_parameter" "cumulus_collections_dapa_ssm_param" {
  name  = "/unity/unity-ds/api-gateway/integrations/collections-dapa-function-name"
  type  = "String"
  value = aws_lambda_function.cumulus_collections_dapa.function_name
}

resource "aws_ssm_parameter" "cumulus_collections_create_dapa_ssm_param" {
  name  = "/unity/unity-ds/api-gateway/integrations/collections-create-dapa-function-name"
  type  = "String"
  value = aws_lambda_function.cumulus_collections_creation_dapa_facade.function_name
}

resource "aws_ssm_parameter" "cumulus_collections_ingest_dapa_ssm_param" {
  name  = "/unity/unity-ds/api-gateway/integrations/collections-ingest-dapa-function-name"
  type  = "String"
  value = aws_lambda_function.cumulus_collections_ingest_cnm_dapa.function_name
}

resource "aws_ssm_parameter" "cumulus_granules_dapa_ssm_param" {
  name  = "/unity/unity-ds/api-gateway/integrations/granules-dapa-function-name"
  type  = "String"
  value = aws_lambda_function.cumulus_granules_dapa.function_name
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions