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

Unsupported block type runtime_platform for aws_ecs_service #22153

Closed
georgikoemdzhiev opened this issue Dec 10, 2021 · 4 comments · Fixed by #22155
Closed

Unsupported block type runtime_platform for aws_ecs_service #22153

georgikoemdzhiev opened this issue Dec 10, 2021 · 4 comments · Fixed by #22155
Labels
documentation Introduces or discusses updates to documentation. service/ecs Issues and PRs that pertain to the ecs service.
Milestone

Comments

@georgikoemdzhiev
Copy link

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 v1.1.0
on windows_amd64

  • provider registry.terraform.io/hashicorp/aws v3.69.0
  • provider registry.terraform.io/hashicorp/template v2.2.0

Affected Resource(s)

  • aws_ecs_service

Terraform Configuration Files

resource "aws_ecs_service" "spr_service" {
  name                               = "${var.app_name}-spr-service"
  cluster                            = aws_ecs_cluster.cluster.id
  task_definition                    = "${aws_ecs_task_definition.spr_production_service.family}:${max(aws_ecs_task_definition.spr_production_service.revision, data.aws_ecs_task_definition.spr_production_service_td.revision)}"
  desired_count                      = 1
  deployment_minimum_healthy_percent = 100
  deployment_maximum_percent         = 200
  launch_type                        = "FARGATE"
  scheduling_strategy                = "REPLICA"
  enable_ecs_managed_tags            = true
  # force_new_deployment               = true

  runtime_platform {
    operating_system_family = "WINDOWS_SERVER_2019_CORE"
    cpu_architecture        = "X86_64"
  }
  network_configuration {
    subnets = var.application_subnets
    assign_public_ip = true
    security_groups = [
      aws_security_group.spr_production_service_sg.id,
    ]
  }
}

Debug Output

Panic Output

N/A

Expected Behavior

The runtime_platform configuration should be applied to my ECS service

Actual Behavior

An error is thrown after I perform terraform apply :

Error: Unsupported block type
│ 
│   on ..\..\modules\ecs\main.tf line 183, in resource "aws_ecs_service" "spr_service":
│  183:   runtime_platform {
│ 
│ Blocks of type "runtime_platform" are not expected here.
╵

Steps to Reproduce

  1. Use runtime_platform configuration block in a aws_ecs_service resource
  2. terraform apply

Important Factoids

N/A

References

@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 Dec 10, 2021
@ewbankkit
Copy link
Contributor

@georgikoemdzhiev Thanks for raising this issue.
The CHANGELOG entry for #22016 is incomplete. The resource that implements the runtime_platform functionality is aws_ecs_task_definition, not aws_ecs_service.
I'll correct the CHANGELOG.

@ewbankkit ewbankkit added documentation Introduces or discusses updates to documentation. and removed needs-triage Waiting for first response or review from a maintainer. labels Dec 10, 2021
@github-actions github-actions bot added this to the v3.70.0 milestone Dec 10, 2021
@georgikoemdzhiev
Copy link
Author

No problem. Thank you :)

@github-actions
Copy link

This functionality has been released in v3.70.0 of the Terraform AWS Provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading.

For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template. Thank you!

@github-actions
Copy link

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 May 25, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
documentation Introduces or discusses updates to documentation. service/ecs Issues and PRs that pertain to the ecs service.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants