Skip to content

aws_ssmquicksetup_configuration_manager cannot handle null values for output bucket #42809

Open
@Enkelmann

Description

@Enkelmann

Terraform and AWS Provider Version

terraform --version
Terraform v1.12.1
on linux_amd64
+ provider registry.terraform.io/hashicorp/aws v5.98.0

Affected Resource(s) or Data Source(s)

aws_ssmquicksetup_configuration_manager

Expected Behavior

Resource of type aws_ssmquicksetup_configuration_manager can be applied without output buckets set

resource "aws_ssmquicksetup_configuration_manager" "example" {
  [...]
  configuration_definition {
    [...]
    parameters = {
      [...]
      "OutputBucketRegion" = null
      "OutputS3BucketName" = null
      "OutputS3KeyPrefix" = null
    }
  }
}

Actual Behavior

Error during terraform apply:

│ An unexpected error was encountered trying to build a value. This is always an error in the provider. Please report the following to the provider developer:
│ 
│ Received null value, however the target type cannot handle null values. Use the corresponding `types` package type, a pointer type or a custom type that handles null values.
│ 
│ Path: ["OutputBucketRegion"]
│ Target Type: string
│ Suggested `types` Type: basetypes.StringValue
│ Suggested Pointer Type: *string

(same for the other values)

If one completely removes the fields instead, the terraform apply goes through but complains about unexpected new values for the fields appearing afterwards.

Relevant Error/Panic Output

Sample Terraform Configuration

see Expected Behavior

Steps to Reproduce

Apply the configuration described above.

Debug Logging

No response

GenAI / LLM Assisted Development

n/a

Important Facts and References

No response

Would you like to implement a fix?

No

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugAddresses a defect in current functionality.service/ssmquicksetupIssues and PRs that pertain to the ssmquicksetup service.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions