Skip to content

Commit

Permalink
fix: queued_timeout attribute not support when enviroment is Lambda
Browse files Browse the repository at this point in the history
  • Loading branch information
shblue21 committed Dec 22, 2023
1 parent 9e14972 commit a270b4d
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions internal/service/codebuild/project.go
Original file line number Diff line number Diff line change
Expand Up @@ -635,6 +635,15 @@ func ResourceProject() *schema.Resource {
Optional: true,
Default: 480,
ValidateFunc: validation.IntBetween(5, 480),
DiffSuppressFunc: func(k, old, new string, d *schema.ResourceData) bool {
if d.Get("environment.0.type") == codebuild.EnvironmentTypeArmLambdaContainer {
return true
}
if d.Get("environment.0.type") == codebuild.EnvironmentTypeLinuxLambdaContainer {
return true
}
return false
},
},
"badge_enabled": {
Type: schema.TypeBool,
Expand Down

0 comments on commit a270b4d

Please sign in to comment.