Commit bbd0cc5c authored by A-Gordon's avatar A-Gordon

Added role_arn output and updated README

parent e32398db
Pipeline #737 passed with stage
in 7 seconds
...@@ -11,4 +11,8 @@ module "cloudcheckr" { ...@@ -11,4 +11,8 @@ module "cloudcheckr" {
account_id = "cloudcheckr_aws_account_id" account_id = "cloudcheckr_aws_account_id"
external_id = "cloudcheckr_external_id" external_id = "cloudcheckr_external_id"
} }
output "cloudcheckr_role_arn" {
value = "${module.cloudcheckr.role_arn}"
}
``` ```
...@@ -9,7 +9,6 @@ ...@@ -9,7 +9,6 @@
data "template_file" "assume_role" { data "template_file" "assume_role" {
template = "${file("${path.module}/assume_role.json.tpl")}" template = "${file("${path.module}/assume_role.json.tpl")}"
vars { vars {
account_id = "${var.account_id}" account_id = "${var.account_id}"
external_id = "${var.external_id}" external_id = "${var.external_id}"
...@@ -39,3 +38,7 @@ output "name" { ...@@ -39,3 +38,7 @@ output "name" {
output "policy" { output "policy" {
value = "${aws_iam_policy.main.name}" value = "${aws_iam_policy.main.name}"
} }
output "role_arn" {
value = "${aws_iam_role.main.arn}"
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment