Invalid environment type: Codebuild curated windows container

0

Hello,

Creating/Updating AWS CodeBuild project using WINDOWS_CONTAINER works well until yesterday via CLI but It's not working anymore from today with this exception.

An error occurred (InvalidInputException) when calling the UpdateProject operation: Invalid environment type

Original command was (nothing has changed from yesterday)

aws codebuild update-project --cli-input-json {"name": "build_test_naoko", "description": "build test naoko", "source": {"type": "GITHUB", "location": "...", "gitCloneDepth": 0, "buildspec": "buildspec.yml", "auth": {"type": "OAUTH", "resource": "..."}, "insecureSsl": true, "sourceIdentifier": "master"}, "artifacts": {"encryptionDisabled": true, "location": "hbsmith-codebuild-artifacts-us-east-1-20190423", "overrideArtifactName": true, "packaging": "ZIP", "path": "naoko", "type": "S3"}, "cache": {"type": "NO_CACHE"}, "environment": {"type": "WINDOWS_CONTAINER", "image": "aws/codebuild/windows-base:1.0", "computeType": "BUILD_GENERAL1_LARGE", "environmentVariables": []}, "serviceRole": "arn:aws:iam::...:role/aws-codebuild-build-test-naoko-role", "timeoutInMinutes": 90, "badgeEnabled": true, "secondaryArtifacts": [{"artifactIdentifier": "lastest", "encryptionDisabled": true, "location": "hbsmith-codebuild-artifacts-us-east-1-20190423", "overrideArtifactName": true, "packaging": "ZIP", "path": "naoko", "type": "S3"}]}

I updated CLI with latest version but problem still occurs. CodeBuild document still cites it supports aws/codebuild/windows-base:1.0.
What cause the problem? Is it my fault or CodeBuild's fault?

HBsmith
asked 5 years ago628 views
4 Answers
0

Hi,

it happens the same to me. I was using boto3 to create a codebuild project with the following environment:

'environment': {
            'type': 'WINDOWS_CONTAINER',
            'computeType': 'BUILD_GENERAL1_MEDIUM',
            'image': f"{REPOSITORY_URI}:{IMAGE_VERSION}",
            'imagePullCredentialsType': 'SERVICE_ROLE'
        }

and the same error appears: An error occurred (InvalidInputException) when calling the CreateProject operation: Invalid environment type.

I tried to create a dummy codebuild project by using the aws console and the problem is the same when using 'type': 'WINDOWS_CONTAINER'. ( Invalid environment type ).

For Linux type codebuild projects it works correctly.

jcozar
answered 5 years ago
0

I'm seeing the same thing, tried multiple accounts and via Console and Cloudformation. I contacted @AWSsupport on twitter, they dont seem too interested at the moment.

answered 5 years ago
0

Amazon have fixed this!

answered 5 years ago
0

I found everything works fine now :)

HBsmith
answered 5 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions