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

aws_ecs_cluster fails to update on eu-south-1: This operation isn't supported in this Region. #22576

Closed
ProGM opened this issue Jan 13, 2022 · 3 comments
Labels
enhancement Requests to existing resources that expand the functionality or scope. service/ecs Issues and PRs that pertain to the ecs service. stale Old or inactive issues managed by automation, if no further action taken these will get closed.

Comments

@ProGM
Copy link

ProGM commented Jan 13, 2022

I'm getting this error when updating an ECS cluster in eu-south-1.

Error: error changing ECS cluster (arn:aws:ecs:eu-south-1:******:cluster/test): ClientException: This operation isn't supported in this Region.

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • 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
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Terraform CLI and Terraform AWS Provider Version

$ terraform -v
Terraform v1.0.3
on darwin_amd64

AWS Provider: 3.71.0

Affected Resource(s)

  • aws_ecs_cluster

Terraform Configuration Files

You can replicate it simply with this main.tf:

provider "aws" {
  region                  = "eu-south-1"
  profile                 = "monade"
}

resource "aws_ecs_cluster" "test" {
  count = 1

  name = "test_cluster"

  setting {
    name  = "containerInsights"
    value = "disabled"
  }
}

You have to run the apply twice. The second time you'll get:

aws_ecs_cluster.test[0]: Modifying... [id=arn:aws:ecs:eu-south-1:******:cluster/test_cluster]
╷
│ Error: error changing ECS cluster (arn:aws:ecs:eu-south-1:******:cluster/test_cluster): ClientException: This operation isn't supported in this Region.
│
│   with aws_ecs_cluster.test[0],
│   on main.tf line 6, in resource "aws_ecs_cluster" "test":
│    6: resource "aws_ecs_cluster" "test" {
│

Expected Behavior

It should ignore the option containerInsights if not allowed in that region

Actual Behavior

It fails to update the resource

Steps to Reproduce

  1. terraform plan
  2. terraform apply
  3. terraform plan
  4. terraform apply
    (two times)
@github-actions github-actions bot added needs-triage Waiting for first response or review from a maintainer. service/ecs Issues and PRs that pertain to the ecs service. labels Jan 13, 2022
@ProGM
Copy link
Author

ProGM commented Jan 13, 2022

This can be "fixed" by removing the option:


  setting {
    name  = "containerInsights"
    value = "disabled"
  }

However, this is not feasible if you use the official terraform-aws-modules/ecs/aws module.

@justinretzolk justinretzolk added enhancement Requests to existing resources that expand the functionality or scope. and removed needs-triage Waiting for first response or review from a maintainer. labels Jan 13, 2022
Copy link

github-actions bot commented Jan 4, 2024

Marking this issue as stale due to inactivity. This helps our maintainers find and focus on the active issues. If this issue receives no comments in the next 30 days it will automatically be closed. Maintainers can also remove the stale label.

If this issue was automatically closed and you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thank you!

@github-actions github-actions bot added the stale Old or inactive issues managed by automation, if no further action taken these will get closed. label Jan 4, 2024
@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Feb 4, 2024
Copy link

github-actions bot commented Mar 6, 2024

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 have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 6, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement Requests to existing resources that expand the functionality or scope. service/ecs Issues and PRs that pertain to the ecs service. stale Old or inactive issues managed by automation, if no further action taken these will get closed.
Projects
None yet
Development

No branches or pull requests

2 participants