hashicorp / terraform-provider-aws

The AWS Provider enables Terraform to manage AWS resources.
https://registry.terraform.io/providers/hashicorp/aws
Mozilla Public License 2.0
9.85k stars 9.2k forks source link

[Enhancement]: Add support for MWAA micro environments #40231

Open daniepett opened 1 day ago

daniepett commented 1 day ago

Description

AWS recently released support for mw1.micro environments. While the mwaa resource supports specifying the mw1.micro instance class the validation on configuration parameters prevent usage of the instance class due to the minimum and maximum validation on parameters.

mw1.micro requires 1 webserver in configuration and current validation expects between 2 and 5

╷
│ Error: expected min_webservers to be in the range (2 - 5), got 1
│ 
│   with aws_mwaa_environment.this,
│   on mwaa.tf line 11, in resource "aws_mwaa_environment" "this":
│   11:   min_webservers        = 1
│ 
╵
╷
│ Error: expected max_webservers to be in the range (2 - 5), got 1
│ 
│   with aws_mwaa_environment.this,
│   on mwaa.tf line 12, in resource "aws_mwaa_environment" "this":
│   12:   max_webservers        = 1
│ 
╵

Affected Resource(s) and/or Data Source(s)

aws_mwaa_environment

Potential Terraform Configuration

resource aws_mwaa_environment "this" {
name = "airflow"
instance_class = "mw1.micro"
min_webservers = 1
max_webservers = 1
}

References

https://aws.amazon.com/blogs/big-data/introducing-amazon-mwaa-micro-environments-for-apache-airflow/

Would you like to implement a fix?

None

github-actions[bot] commented 1 day ago

Community Note

Voting for Prioritization

Volunteering to Work on This Issue

jeremychauvet commented 1 day ago

Hello 👋🏼 Thank you for taking the time to raise this issue. I'm actively working on it and anticipate releasing a fix later today.