EMR GetAutoTerminationPolicy error when destroying the resource

I am getting below error when destroying EMR resource in AWS gov cloud

**│ Error: error getting auto termination policy: UnknownOperationException: Could not find operation GetAutoTerminationPolicy**

The reason this error happening is because terraform is always looking for AutoTerminationPolicy on the resource when it is trying to refresh the state from the resource. But in Gov Cloud AutoTerminationPolicy is not available for EMR.

Auto-termination for idle clusters using an auto-termination policy is not available in AWS GovCloud (US) Regions.

It looks like bug on the terraform side. Any option to go around this error and have the destroy work.

Please share any insights on this. Thanks for looking into it.


1 Like