- Регистрация
- 1 Мар 2015
- Сообщения
- 1,481
- Баллы
- 155
Why does this matter? You can now enforce fine-grained security policies on:AWS just dropped a cool update: CodeBuild now supports new IAM condition keys for tighter control over your build projects. ?
VPC settings (codebuild:vpcConfig.vpcId)
Buildspec paths (codebuild:source.buildspec)
Compute types (codebuild:computeConfiguration.instanceType), and more...
Let’s say your org wants to:
- Restrict builds to a specific VPC
- Enforce lightweight compute types to save cost
- Ensure developers can only use approved buildspec files
With the new condition keys, your IAM policy can enforce this:
"Condition": {
"StringEquals": {
"codebuild:vpcConfig.vpcId": "vpc-0123456789abcdef0",
"codebuild:computeConfiguration.instanceType": "BUILD_GENERAL1_SMALL",
"codebuild:source.buildspec": "codebuild/buildspecs/approved-buildspec.yml"
}
}
Let me know in the comments — are you planning to use this in your org?? That’s powerful. It means no more rogue instance types or insecure builds slipping through the cracks!