Skip to content

When using hosted configuration, the configuration will never be deployed. #31

@amitla

Description

@amitla

Description

consider this snippet:

module "appconfig" {
  source  = "terraform-aws-modules/appconfig/aws"
  version = "~> 1.0"

  name                                = "some-name"
  description                       = "AppConfig hosted configuration for some-name"
  config_profile_name               = title(var.environment)
  create_deployment_strategy        = false
  deployment_strategy_id            = "AppConfig.AllAtOnce"

  environments = {
    "${var.environment}" = {
      name        = "${title(var.environment)}"
      description = "${title(var.environment)} environment"
    }
  }

  use_hosted_configuration           = true
  hosted_config_version_content_type = "application/json"
  hosted_config_version_content      = file("${path.module}/configs/${var.environment}/config.json")
  
  tags = var.tags
}
  • [v] ✋ I have searched the open/closed issues and my issue is not listed.

Versions

  • Module version [Required]: 1.1.4 (note - this will reproduce on 2.0.0 as well)

Reproduction Code [Required]

see above

Steps to reproduce the behavior:
run init and plan, examine the output

Expected behavior

Expecting the deployment step to take place.

Actual behavior

Deployment is not in the plan

Terminal Output Screenshot(s)

Additional context

This issue was introduced in the 1.1.4 version via this PR: terraform-aws-modules/terraform-aws-appconfig#7
The fix should take into account the use_hosted_configuration flag and allow the code in the aws_appconfig_deployment resource to run even if deployment_configuration_version is not set.

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