Skip to content

Commit

Permalink
remove terraform cloud resources from code block (#75)
Browse files Browse the repository at this point in the history
  • Loading branch information
lucascantor authored Apr 16, 2024
1 parent 1bbc52d commit 1d40b20
Showing 1 changed file with 0 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -143,18 +143,6 @@ data "aws_iam_policy_document" "example_com_s3" {
}
}
# Attachment of AWS-managed admin policy to admin group
resource "aws_iam_group_policy_attachment" "admin_group_admin_policy" {
group = aws_iam_group.admin.name
policy_arn = data.aws_iam_policy.admin.arn
}
# Attachment of AWS-managed admin policy to Terraform Cloud STS assumption role
resource "aws_iam_role_policy_attachment" "terraform_cloud_sts_assumption_role_admin_policy" {
role = aws_iam_role.terraform_cloud_sts_assumption_role.name
policy_arn = data.aws_iam_policy.admin.arn
}
# Attachment of policy granting read-write access to example.com S3 bucket to GitHub Actions STS assumption role
resource "aws_iam_role_policy_attachment" "github_actions_sts_assumption_role_admin_policy" {
role = aws_iam_role.github_actions_sts_assumption_role.name
Expand Down

0 comments on commit 1d40b20

Please sign in to comment.