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.61k stars 9k forks source link

[Enhancement]: Add container properties attribute to `aws_batch_job_definition` data source #36263

Open harto opened 4 months ago

harto commented 4 months ago

Description

The new aws_batch_job_definition data source added in #34663 doesn't seem to provide a way to read container properties for Fargate job type. I expected an attribute like container_properties (as in https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/batch_job_definition#fargate-platform-capability)

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

Potential Terraform Configuration

data "aws_batch_job_definition" "current" {
  name = "a-job-definition"
}

locals {
  current_image = data.aws_batch_job_definition.current.container_properties.image
}

References

Would you like to implement a fix?

None

github-actions[bot] commented 4 months ago

Community Note

Voting for Prioritization

Volunteering to Work on This Issue