Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
tf_mod_aws_iam_assume_role
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
steamhaus
tf_mod_aws_iam_assume_role
Commits
00168f57
Commit
00168f57
authored
Dec 01, 2021
by
Beckybrannan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cleaning up commented out resources
parent
fc238daf
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
19 deletions
+0
-19
main.tf
main.tf
+0
-19
No files found.
main.tf
View file @
00168f57
...
...
@@ -19,30 +19,11 @@ variable "admin" {
default
=
"0"
}
# variable "terraform_version" {}
#############################################################################################################
# IAM Role, Policy and Attachment
#############################################################################################################
# data "template_file" "assume_role" {
# template = "${file("${path.module}/assume_role.json")}"
# vars {
# source_account_id = "${var.source_account_id}"
# }
# }
# resource "aws_iam_role" "role" {
# count = terraform.required_version < "0.12.0" ? 1 : 0
# name = "${var.name}"
# assume_role_policy = "${data.template_file.assume_role.rendered}"
# tags = {
# TerraformVersion = "< 0.12.0"
# }
# lifecycle { create_before_destroy = true }
# }
resource
"aws_iam_role"
"role"
{
# count = var.terraform_version > "0.12.0" ? 1 : 0
name
=
"
${
var
.
name
}
"
assume_role_policy
=
templatefile
(
"
${
path
.
module}
/assume_role.json"
,
{
source_account_id
=
var
.
source_account_id
}
)
tags
=
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment