aws/codebuild: Fixed documentation about Optional vs. Required attributes (#12039)
This commit is contained in:
parent
d8232314cc
commit
1bb3f7f37a
|
@ -76,10 +76,15 @@ resource "aws_codebuild_project" "foo" {
|
||||||
image = "2"
|
image = "2"
|
||||||
type = "LINUX_CONTAINER"
|
type = "LINUX_CONTAINER"
|
||||||
|
|
||||||
environment_variable {
|
environment_variable {
|
||||||
"name" = "SOME_KEY"
|
"name" = "SOME_KEY1"
|
||||||
"value" = "SOME_VALUE"
|
"value" = "SOME_VALUE1"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
environment_variable {
|
||||||
|
"name" = "SOME_KEY2"
|
||||||
|
"value" = "SOME_VALUE2"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
source {
|
source {
|
||||||
|
@ -103,9 +108,9 @@ The following arguments are supported:
|
||||||
* `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` - (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.
|
||||||
* `timeout` - (Optional) How long in minutes, from 5 to 480 (8 hours), for AWS CodeBuild to wait until timing out any related build that does not get marked as completed. The default is 60 minutes.
|
* `timeout` - (Optional) How long in minutes, from 5 to 480 (8 hours), for AWS CodeBuild to wait until timing out any related build that does not get marked as completed. The default is 60 minutes.
|
||||||
* `tags` - (Optional) A mapping of tags to assign to the resource.
|
* `tags` - (Optional) A mapping of tags to assign to the resource.
|
||||||
* `artifacts` - (Optional) Information about the project's build output artifacts. Artifact blocks are documented below.
|
* `artifacts` - (Required) Information about the project's build output artifacts. Artifact blocks are documented below.
|
||||||
* `environment` - (Optional) Information about the project's build environment. Environment blocks are documented below.
|
* `environment` - (Required) Information about the project's build environment. Environment blocks are documented below.
|
||||||
* `source` - (Optional) Information about the project's input source code. Source blocks are documented below.
|
* `source` - (Required) Information about the project's input source code. Source blocks are documented below.
|
||||||
|
|
||||||
`artifacts` supports the following:
|
`artifacts` supports the following:
|
||||||
|
|
||||||
|
@ -137,7 +142,7 @@ The following arguments are supported:
|
||||||
`auth` supports the following:
|
`auth` supports the following:
|
||||||
|
|
||||||
* `type` - (Required) The authorization type to use. The only valid value is `OAUTH`
|
* `type` - (Required) The authorization type to use. The only valid value is `OAUTH`
|
||||||
* `resource` - (Required) The resource value that applies to the specified authorization type.
|
* `resource` - (Optional) The resource value that applies to the specified authorization type.
|
||||||
|
|
||||||
## Attributes Reference
|
## Attributes Reference
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue