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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

r/aws_ecs_service with count returns null output for attributes #11771

Open
davidgereb opened this issue Jan 27, 2020 · 1 comment
Open

r/aws_ecs_service with count returns null output for attributes #11771

davidgereb opened this issue Jan 27, 2020 · 1 comment
Labels
service/ecs Issues and PRs that pertain to the ecs service. waiting-response Maintainers are waiting on response from community or contributor.

Comments

@davidgereb
Copy link

When using an aws_ecs_service with count outputs for attributes are null. Works fine with other resources.

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 Version

Terraform v0.12.20
+ provider.aws v2.29.0
+ provider.external v1.2.0

Affected Resource(s)

  • aws_ecs_service

Terraform Configuration Files

resource "aws_ecs_service" "main" {
  count = var.count
  name = "${var.application}-${count.index}"
  # ...
}

output "first_service_name" {
  value = aws_ecs_service.main[0].name
}

Expected Behavior

Terraform should output the name of the service.

Actual Behavior

Terraform returns null for the name of the service, results in output not being shown.

Steps to Reproduce

  1. Set up an aws_ecs_service with count
    2.terraform apply
@ghost ghost added the service/ecs Issues and PRs that pertain to the ecs service. label Jan 27, 2020
@github-actions github-actions bot added the needs-triage Waiting for first response or review from a maintainer. label Jan 27, 2020
@justinretzolk
Copy link
Member

Hey @davidgereb 馃憢 Thank you for taking the time to file this issue! Given that there's been a number of Terraform and AWS provider releases since you initially filed it, can you confirm whether you're still experiencing this behavior?

@justinretzolk justinretzolk added waiting-response Maintainers are waiting on response from community or contributor. and removed needs-triage Waiting for first response or review from a maintainer. labels Nov 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
service/ecs Issues and PRs that pertain to the ecs service. waiting-response Maintainers are waiting on response from community or contributor.
Projects
None yet
Development

No branches or pull requests

2 participants