File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 11# Define composite variables for resources
22module "label" {
3- source = " git::https://github.com/cloudposse/tf_label.git?ref=tags/0.1 .0"
3+ source = " git::https://github.com/cloudposse/tf_label.git?ref=tags/0.2 .0"
44 namespace = " ${ var . namespace } "
55 name = " ${ var . name } "
66 stage = " ${ var . stage } "
@@ -47,21 +47,21 @@ data "aws_iam_policy_document" "permissions" {
4747 " ecr:GetAuthorizationToken" ,
4848 " ecr:InitiateLayerUpload" ,
4949 " ecr:PutImage" ,
50- " ecr:UploadLayerPart"
50+ " ecr:UploadLayerPart" ,
5151 ]
5252
5353 effect = " Allow"
5454
5555 resources = [
56- " *"
56+ " *" ,
5757 ]
5858 }
5959}
6060
61- resource "aws_iam_policy_attachment " "default" {
61+ resource "aws_iam_role_policy_attachment " "default" {
6262 name = " ${ module . label . id } "
6363 policy_arn = " ${ aws_iam_policy . default . arn } "
64- roles = [ " ${ aws_iam_role . default . id } " ]
64+ role = " ${ aws_iam_role . default . id } "
6565}
6666
6767resource "aws_codebuild_project" "default" {
You can’t perform that action at this time.
0 commit comments