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

ARM_CONTAINER not considered valid value for AWS::CodeBuild::Project.Environment.Type #1588

Closed
tilne opened this issue Jun 12, 2020 · 1 comment
Labels
good first issue Good for newcomers

Comments

@tilne
Copy link

tilne commented Jun 12, 2020

cfn-lint version 0.33.0

When using a CFN template that contains an AWS::CodeBuild::Project resource whose Environment->Type is set to ARM_CONTAINER cfn-lint exits nonzero with the following error:

➜  cfn-lint --info ../cloudformation/cfn-lint-issue-example.json 
2020-06-12 08:09:02,170 - cfnlint.runner - INFO - Run scan of template ../cloudformation/cfn-lint-issue-example.json
E3030 You must specify a valid value for Type (ARM_CONTAINER).
Valid values are ["LINUX_CONTAINER", "WINDOWS_CONTAINER"]
../cloudformation/cfn-lint-issue-example.json:26:11

The full template is:

{
  "Resources": {
    "CodeBuildDockerImageBuilderProject": {
      "Type": "AWS::CodeBuild::Project",
      "Properties": {
        "Artifacts": {
          "Type": "NO_ARTIFACTS"
        },
        "Environment": {
          "ComputeType": "BUILD_GENERAL1_LARGE",
          "EnvironmentVariables": [
            {
              "Name": "AWS_REGION",
              "Value": {
                "Ref": "AWS::Region"
              }
            },
            {
              "Name": "AWS_ACCOUNT_ID",
              "Value": {
                "Ref": "AWS::AccountId"
              }
            }
          ],
          "Image": "aws/codebuild/amazonlinux2-aarch64-standard:1.0",
          "Type": "ARM_CONTAINER",
          "PrivilegedMode": true
        },
        "Name": "build-docker-images-project",
        "Source": {
          "Location": "some-bucket/docker/artifacts.zip",
          "Type": "S3"
        },
        "ServiceRole": "SomeServiceRole"
      }
    }
  }
}

The corresponding documentation lists this as a valid value.

Re-installing the latest version and running cfn-lint -u did not fix it.

@PatMyron PatMyron changed the title ARM_CONTAINER not considered valid Environment->Type value for AWS::CodeBuild::Project Resource ARM_CONTAINER not considered valid value for AWS::CodeBuild::Project.Environment.Type Sep 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants