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]: Codebuild in latest AWS provider doesn't reflect correct region build types #35523

Open
afadhel-bibf opened this issue Jan 28, 2024 · 2 comments
Labels
bug Addresses a defect in current functionality. service/codebuild Issues and PRs that pertain to the codebuild service. upstream Addresses functionality related to the cloud provider.

Comments

@afadhel-bibf
Copy link

afadhel-bibf commented Jan 28, 2024

Terraform Core Version

1.7.0

AWS Provider Version

5.34.0

Affected Resource(s)

resource "aws_codebuild_project" "xxxxxxx"

Expected Behavior

A code build project would be created with the "WINDOWS_SERVER_2022_CONTAINER" type in Frankfurt region, which is available if you manually build the project in the console.

Actual Behavior

Error: expected type to be one of ["WINDOWS_CONTAINER" "LINUX_CONTAINER" "LINUX_GPU_CONTAINER" "ARM_CONTAINER" "WINDOWS_SERVER_2019_CONTAINER" "LINUX_LAMBDA_CONTAINER" "ARM_LAMBDA_CONTAINER"], got WINDOWS_SERVER_2022_CONTAINER

Relevant Error/Panic Output Snippet

No response

Terraform Configuration Files

resource "aws_codebuild_project" "xxxxxxx" {
  name         = "xxxxxxxI"
  description  = "xxxxxxx"
  service_role = aws_iam_role.xxxxxxx.arn

  artifacts {
    type = "CODEPIPELINE"
  }

  environment {
    compute_type    = "BUILD_GENERAL1_LARGE"
    image           = "aws/codebuild/windows-base:2022-1.0"
    type            = "WINDOWS_SERVER_2022_CONTAINER"

  }

  source {
    type      = "CODEPIPELINE"
    buildspec = "xxxxxxx.yml"
  }
}

Steps to Reproduce

Build a code build project with the above configuration.

Debug Output

No response

Panic Output

No response

Important Factoids

No response

References

No response

Would you like to implement a fix?

None

@afadhel-bibf afadhel-bibf added the bug Addresses a defect in current functionality. label Jan 28, 2024
@github-actions github-actions bot added the service/codebuild Issues and PRs that pertain to the codebuild service. label Jan 28, 2024
Copy link

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 Jan 28, 2024
@acwwat
Copy link
Contributor

acwwat commented Jan 29, 2024

Windows Server 2022 images don't seem to be supported at the moment, as the option is consistently absent from all documentation and code sources:

I also haven't seen any announcements or SDK PRs but I could be wrong. I would recommend that you open an AWS support ticket and inquire whether the option/support has GA'ed.

@ewbankkit ewbankkit added upstream Addresses functionality related to the cloud provider. and removed needs-triage Waiting for first response or review from a maintainer. labels Jan 29, 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/codebuild Issues and PRs that pertain to the codebuild service. upstream Addresses functionality related to the cloud provider.
Projects
None yet
Development

No branches or pull requests

3 participants