Skip to content

Commit

Permalink
remove comments
Browse files Browse the repository at this point in the history
  • Loading branch information
tbugfinder committed Oct 27, 2019
1 parent 52567f4 commit 54d9d91
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions resource_share.tf
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,12 @@ resource "aws_ram_resource_share" "ramshare" {

# Associate principals with share
resource "aws_ram_principal_association" "ram_principal_assoc" {
# principal = "394197307369"
principal = "${data.aws_caller_identity.spoke.account_id}"
resource_share_arn = "${aws_ram_resource_share.ramshare.id}"
}

# Associate resources with share
resource "aws_ram_resource_association" "ram_resource_assoc" {
# count cannot be computed while using resource outputs as input
# helper using null datasource to convert string to number - weird but a workaround
# count = "${data.null_data_source.values.outputs["arnscount"]}"
resource_arn = "${aws_ec2_transit_gateway.test-tgw.arn}"

resource_arn = "${aws_ec2_transit_gateway.test-tgw.arn}"
resource_share_arn = "${aws_ram_resource_share.ramshare.id}"
}

0 comments on commit 54d9d91

Please sign in to comment.