-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
aws_cloudwatch_metric_alarm "arn:aws:automate:${var.region}:ec2:recover does not match regexp #6386
Comments
Im definitely having the same error with terraform. I was actually able to use this about 2 days ago, but today I cannot use it:
Reboot action seems to be gone now? Error:
|
Hi folks 👋 Sorry for the trouble here. This has been an unfolding issue for the last few releases. 😅
I have submitted #6405 to allow |
Perfect thanks! ;-)
Am Fr., 9. Nov. 2018, 00:32 hat Brian Flad <notifications@github.com>
geschrieben:
… Hi folks 👋 Sorry for the trouble here. This has been an unfolding issue
for the last few releases. 😅
- In version 1.41.0 of the AWS provider (specifically #6151
<#6151>),
we started validating during plan-time that alarm_actions were in fact
"normal" ARNs (e.g. arn:PARTITION:SERVICE:REGION:ACCOUNT:RESOURCE)
which was a validation that did not previously. Since these EC2 automation
ARNs differ by including ec2 in the account ID field (normally a 12
digit number) this caused the initial regression.
- In version 1.42.0 of the AWS provider (specifically #6206
<#6206>)
we started allowing EC2 automation ARNs including recover, stop, and
terminate.
- This issue here now surfaces that while reboot is documented under
OKActions, it was not documented under AlarmActions, which was a mistake on
my part for not including it in the original fix.
I have submitted #6405
<#6405>
to allow reboot as well. I'll make sure this gets included in version
1.43.1, which will likely get released later tonight.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#6386 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAedILg-SDOud0SdDb3Slz-3rrRqPrIAks5utL8WgaJpZM4YSPkX>
.
|
Hey there Blfad - will you let us know when this gets deployed? |
The fix for this has been merged and will be released in version 1.43.1 of the provider shortly (next hour or so, sorry for the slight delay). 👍 |
This has been released in version 1.43.1 of the AWS provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. |
Fixed, thanks! |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thanks! |
This issue was originally opened by @klassm as hashicorp/terraform#19307. It was migrated here as a result of the provider split. The original body of the issue is below.
Hi there,
updating to the latest version of terraform 0.11.10 produced a new issue with our configuration. We are using an aws_cloudwatch_metric_alarm to trigger alarm actions for recover and reboot.
This worked out just fine - however, in the latest version of terraform planning an execution plan breaks with
Looking at the AWS API documentation, "arn:aws:automate:eu-central-1:ec2:reboot" still seems to be a valid value: https://docs.aws.amazon.com/de_de/AmazonCloudWatch/latest/APIReference/API_PutMetricAlarm.html
Is there any reason why this does not work any more?
Thanks,
Matthias
The text was updated successfully, but these errors were encountered: