Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LauncheTemplateSpecification (autoscaling::AutoScalingGroup) should require one of LauchTemplateId or LaunchTemplateName #1282

Closed
Iced-Sun opened this issue Jan 19, 2024 · 2 comments
Labels
awaiting-upstream The issue cannot be resolved without action in another repository (may be owned by Pulumi). kind/bug Some behavior is incorrect or out of spec

Comments

@Iced-Sun
Copy link

Iced-Sun commented Jan 19, 2024

What happened?

CloudControl API complains with operation UPDATE failed with "InvalidRequest": A launch template specification in the overrides isn't valid. Either a LaunchTemplateId or a LaunchTemplateName must be specified.

The schema is defined at:

"LaunchTemplateSpecification" : {
"additionalProperties" : false,
"type" : "object",
"properties" : {
"LaunchTemplateName" : {
"type" : "string"
},
"Version" : {
"type" : "string"
},
"LaunchTemplateId" : {
"type" : "string"
}
},
"required" : [ "Version" ]
},

Example

  1. create an AutoscalingGroup
  2. modify any configuration that triggers update (e.g., template version)
  3. boom!

Output of pulumi about

CLI                                                                                                                    
Version      3.101.1
Go Version   go1.21.5
Go Compiler  gc

Plugins
NAME        VERSION
aws         6.18.0
aws-native  0.94.0
nodejs      unknown

Host     
OS       exherbo
Version  
Arch     x86_64

This project is written in nodejs: executable='/usr/host/bin/node' version='v20.10.0'

Additional context

No response

Contributing

Vote on this issue by adding a 👍 reaction.
To contribute a fix for this issue, leave a comment (and link to your pull request, if you've opened one already).

@Iced-Sun Iced-Sun added kind/bug Some behavior is incorrect or out of spec needs-triage Needs attention from the triage team labels Jan 19, 2024
@mjeffryes mjeffryes removed the needs-triage Needs attention from the triage team label Jan 20, 2024
@mjeffryes
Copy link
Member

Thanks for the bug report @Iced-Sun. It looks like this constraint may not be represneted in the CC specification, so we might need an upstream change to fix it.

@Iced-Sun
Copy link
Author

Upstream fixed the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting-upstream The issue cannot be resolved without action in another repository (may be owned by Pulumi). kind/bug Some behavior is incorrect or out of spec
Projects
None yet
Development

No branches or pull requests

3 participants