diff --git a/aws/resource_aws_codebuild_project.go b/aws/resource_aws_codebuild_project.go index 4a378ecf048..5da30952ead 100644 --- a/aws/resource_aws_codebuild_project.go +++ b/aws/resource_aws_codebuild_project.go @@ -176,8 +176,7 @@ func resourceAwsCodeBuildProject() *schema.Resource { }, "service_role": { Type: schema.TypeString, - Optional: true, - Computed: true, + Required: true, }, "source": { Type: schema.TypeSet, diff --git a/website/docs/r/codebuild_project.html.markdown b/website/docs/r/codebuild_project.html.markdown index 5afd8bd94d3..c0ba2f9f7bb 100644 --- a/website/docs/r/codebuild_project.html.markdown +++ b/website/docs/r/codebuild_project.html.markdown @@ -154,7 +154,7 @@ The following arguments are supported: * `cache` - (Optional) Information about the cache storage for the project. Cache blocks are documented below. * `description` - (Optional) A short description of the project. * `encryption_key` - (Optional) The AWS Key Management Service (AWS KMS) customer master key (CMK) to be used for encrypting the build project's build output artifacts. -* `service_role` - (Optional) The Amazon Resource Name (ARN) of the AWS Identity and Access Management (IAM) role that enables AWS CodeBuild to interact with dependent AWS services on behalf of the AWS account. +* `service_role` - (Required) The Amazon Resource Name (ARN) of the AWS Identity and Access Management (IAM) role that enables AWS CodeBuild to interact with dependent AWS services on behalf of the AWS account. * `tags` - (Optional) A mapping of tags to assign to the resource. * `vpc_config` - (Optional) Configuration for the builds to run inside a VPC. VPC config blocks are documented below.