-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Tagging resources seems to be broken #2969
Comments
It looks like you may not be passing the arguments to create_or_update_tags correctly, try something like: aws_autoscaling_client.create_or_update_tags(
tags: [
{
key: "TaggingWorks",
propagate_at_launch: true,
resource_id: group.name,
resource_type: "auto-scaling-group",
value: "true",
}]) |
@alextwoods thanks for the response, I've also tried that way and still get the same issue: aws_autoscaling_client.create_or_update_tags(
tags: [{
key: "TaggingWorks",
propagate_at_launch: true,
resource_id: group.name,
resource_type: "auto-scaling-group",
value: "true",
}]
) Error:
|
Thats strange - from the error/stack trace I believe what is going on is
You could also potentially try making the call more explicit with:
|
I also agree this is strange. For the latest SDK, I can do the following:
Perhaps are you still executing the old code? |
I think this may have been it actually, apologies, it seems a file had become corrupted by a bad merge and I hadn't noticed 🤦♂️ |
|
Describe the bug
I'm attempting to tag an autoscaling group. This is failing with the included error.
Expected Behavior
Autoscaling group gets tagged
Current Behavior
Error when attempting to tag an autoscaling group
Possible Solution
No response
Additional Information/Context
No response
Gem name ('aws-sdk', 'aws-sdk-resources' or service gems like 'aws-sdk-s3') and its version
aws-sdk-autoscaling 3.190.0
Environment details (Version of Ruby, OS environment)
Ruby 3.2.2 - Ubuntu
The text was updated successfully, but these errors were encountered: