Skip to content
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

[Bug]: unexpected state PENDING during aws_mwaa_environment creation #37223

Open
maxmuffin opened this issue May 2, 2024 · 4 comments
Open
Labels
bug Addresses a defect in current functionality. service/mwaa Issues and PRs that pertain to the mwaa service.

Comments

@maxmuffin
Copy link

maxmuffin commented May 2, 2024

Terraform Core Version

1.5.0

AWS Provider Version

5.39.0

Affected Resource(s)

aws_mwaa_environment

Expected Behavior

resource creation without errors

Actual Behavior

resource creation with error:
waiting for MWAA Environment (airflow-environment) create: unexpected state 'PENDING', wanted target 'AVAILABLE', last error: %!s()

Relevant Error/Panic Output Snippet

waiting for MWAA Environment (airflow-environment) create: unexpected state 'PENDING', wanted target 'AVAILABLE', last error: %!s(<nil>)

Terraform Configuration Files

resource "aws_mwaa_environment" "airflow" {

  name                  = var.airflow_service_name
  execution_role_arn    = var.airflow_execution_role
  source_bucket_arn     = "arn:aws:s3:::${var.apps_bucket}"
  dag_s3_path           = "dags/"
  endpoint_management   = "CUSTOMER"

  network_configuration {
    security_group_ids = var.airflow_security_group_ids
    subnet_ids         = var.airflow_subnet_ids
  }
}

Steps to Reproduce

add attribute endpoint_management = "CUSTOMER" in aws_mwaa_environment resource

Debug Output

No response

Panic Output

No response

Important Factoids

MWAA required VPC endpoints needs to be managed by CUSTOMER. Selecting attribute endpoint_management equal to CUSTOMER, mwaa enter in PENDING state during creation, that is not supported.

References

No response

Would you like to implement a fix?

No

@maxmuffin maxmuffin added the bug Addresses a defect in current functionality. label May 2, 2024
@github-actions github-actions bot added the service/mwaa Issues and PRs that pertain to the mwaa service. label May 2, 2024
Copy link

github-actions bot commented May 2, 2024

Community Note

Voting for Prioritization

  • Please vote on this issue by adding a 👍 reaction to the original post to help the community and maintainers prioritize this request.
  • Please see our prioritization guide for information on how we prioritize.
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request.

Volunteering to Work on This Issue

  • If you are interested in working on this issue, please leave a comment.
  • If this would be your first contribution, please review the contribution guide.

@terraform-aws-provider terraform-aws-provider bot added the needs-triage Waiting for first response or review from a maintainer. label May 2, 2024
@justinretzolk justinretzolk removed the needs-triage Waiting for first response or review from a maintainer. label May 2, 2024
@preetsindhal
Copy link

Hi @maxmuffin
did you use any workaround for now? Something like making terraform wait for a specific timeout after it initiated the mwaa creation?

Thanks

@maxmuffin maxmuffin closed this as not planned Won't fix, can't repro, duplicate, stale Jul 15, 2024
Copy link

Warning

This issue has been closed, meaning that any additional comments are hard for our team to see. Please assume that the maintainers will not see them.

Ongoing conversations amongst community members are welcome, however, the issue will be locked after 30 days. Moving conversations to another venue, such as the AWS Provider forum, is recommended. If you have additional concerns, please open a new issue, referencing this one where needed.

@maxmuffin
Copy link
Author

Hi @preetsindhal ,
for now the resource has been created manually from the AWS console and imported directly into the terraform state to manage at least the update and delete operations.

@maxmuffin maxmuffin reopened this Jul 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Addresses a defect in current functionality. service/mwaa Issues and PRs that pertain to the mwaa service.
Projects
None yet
Development

No branches or pull requests

3 participants