-
Notifications
You must be signed in to change notification settings - Fork 15
imagebuilder fails to serialize types.LaunchTemplateConfiguration.SetDefaultVersion
when set to false
#736
Comments
Hi @DanielRieske , Thanks for reporting this issue. I'm able to reproduce this behavior. What we suspect the issue here is that the ImageBuilder service defines a default value of We are working on upstreaming this issue to the service and will let you know once we have more details. Thanks, |
HI @RanVaknin Thanks for taking a look at this! From your explanation I understand that this would happen if we don't explicitly set the And looking at the current implementation of how this argument serializes that makes sense. Wouldn't this be an issue in the logic for serialization rather than an issue for the imagebuilder service team? Again thanks for your help so far! |
Hi @DanielRieske , Thanks for your patience. The problem here is two fold:
$ aws imagebuilder get-distribution-configuration --distribution-configuration-arn arn:aws:imagebuilder:us-east-1:REDACTED:distribution-configuration/example-distribution-config
{
"requestId": "REDACTED",
"distributionConfiguration": {
"arn": "arn:aws:imagebuilder:us-east-1:REDACTED:distribution-configuration/example-distribution-config",
"name": "example-distribution-config",
"distributions": [
{
"region": "us-east-1",
"amiDistributionConfiguration": {
"name": "MyAMI-{{ imagebuilder:buildDate }}"
},
"launchTemplateConfigurations": [
{
"launchTemplateId": "lt-REDACTED",
"accountId": "REDACTED",
"setDefaultVersion": true <-------
}
]
}
],
"dateCreated": "2024-05-07T18:28:35.486Z",
"tags": {}
}
} We are discussing what is the best way to fix this up and will update you as soon as we can. |
Hey @RanVaknin, just checking in - is there an update on this already? |
N.B. For anyone finding this issue -- this is a problem with AWS SDK for Go v2. We have opened the same issue at aws/aws-sdk-go-v2#2734. |
Internal ticket |
This was fixed on the Go SDK side in https://github.com/aws/aws-sdk-go-v2/pull/2838/files |
This issue is now closed. Comments on closed issues are hard for our team to see. |
Acknowledgements
go get -u github.com/aws/aws-sdk-go-v2/...
)Describe the bug
The
types.LaunchTemplateConfiguration.SetDefaultVersion
fails to serialize when set tofalse
.Logging:
Expected Behavior
That the
SetDefaultVersion
was serialized in it's creation call.Current Behavior
SetDefaultVersion
isn't serialized.Reproduction Steps
See above but running: https://github.com/bschaatsbergen/terraform-provider-aws/blob/c8a4204284bc59aae965acddba1257239062009a/internal/service/imagebuilder/distribution_configuration_data_source_test.go#L16
Possible Solution
No response
Additional Information/Context
Relates: aws/aws-sdk-go-v2#2162
AWS Go SDK V2 Module Versions Used
github.com/aws/aws-sdk-go-v2/service/imagebuilder v1.33.3
Compiler and Version used
go version go1.22.2 darwin/arm64
Operating System and version
macOS Sonoma 14.4.1
The text was updated successfully, but these errors were encountered: