Open K-Stefan opened 3 years ago
Ability to set Auto-tune in CloudFormation is, indeed, required to make it available in CDK as well. See https://github.com/aws/aws-cdk/issues/16575
Confirmed with the provider team. This is a new feature, not a bug fix. So change it to enhancement.
We have fixed this issue, could you please verify if we can close this ticket? Thank you!
@ansjcy did you comment on the wrong issue? I don't see any fix/change here.
Note that the inability to set Auto-Tune prevents usage of T3 instances, because they're incompatible with Auto-Tune.
When did this change? We deployed a T3 instance about four months ago and it was fine. I made one change to the config, it tried to redeploy, and now I'm getting the "not supported" error with no obvious way of disabling it!
It's only a dev instance for testing, so I really don't care about autotune. But if it isn't possible to do it in CloudFormation then my 7c/h instance suddenly becomes a 50% more expensive 11c/h c6g.large
instance.
When did this change? We deployed a T3 instance about four months ago and it was fine. I made one change to the config, it tried to redeploy, and now I'm getting the "not supported" error with no obvious way of disabling it!
It's only a dev instance for testing, so I really don't care about autotune. But if it isn't possible to do it in CloudFormation then my 7c/h instance suddenly becomes a 50% more expensive 11c/h
c6g.large
instance.
Did you get to the bottom of this in the end? Any sort of answer? I've just run into the same issue with a domain that's been running quite happily for a long time, now needing a minor update and rolls back because of this.
The answer we got was "it's not supported on those instances and it shouldn't have been enabled". You can still use the smaller instance types, you just can't use autotune with them. And if the instance predates autotune and incorrectly got it enabled when it was released then you can't update through CloudFormation until you manually fix it through the web console.
Trying to scale down an opensearch cluster with cloudformation and we are getting the same error. No way to turn off auto-tune with cloudformation currently. We also never enabled this feature when we scaled up for performance testing.
Resource handler returned message: "Invalid request provided: Autotune is not supported in t2/t3 instance types. Disable autotune or change your instance type. (Service: OpenSearch, Status Code: 400, Request ID: xxxx-xxxx-xxxx-xxxx-xxxx)" (RequestToken: xxxx-xxxx-xxxx-xxxx-xxxx, HandlerErrorCode: InvalidRequest)
As I elaborated a bit more on in re:Post, 70% of our AWS development costs are due to OpenSearch CF only allowing us to run on large instances. It would be really nice to be able to turn off auto-tune and thus run on small instances.
@tibbe - I'm running one of my dev instances on a pair of t3.medium.search
. It is possible. You just need to either a) have a new instance or b) manually disable auto-tune through the console and then make the change in CloudFormation/Serverless.
@tibbe - I'm running one of my dev instances on a pair of
t3.medium.search
. It is possible. You just need to either a) have a new instance or b) manually disable auto-tune through the console and then make the change in CloudFormation/Serverless.
I really don't want to do (b). It defeats the point of having infrastructure as code. (b) is interesting. It goes against what the AWS docs say.
You can always use a CR to do it if you want to keep it fully CDK/Cloudformation managed. We choose to run a 1 time script in all our accounts, as this is a 1 time thing.
Scope of request
ES got a new feature Auto-tune. This feature with all its options are not supported by AWS Cloudformation.
Options missing:
API Specification - CreateElasticSearchDomain - AutoTuneOptions
Expected behavior
Configure the options for ES Auto-tune via Cloudformation - see Screenshot of console:
Suggest specific test cases
none
Helpful Links to speed up research and evaluation
Category (required)