Skip to content

Commit

Permalink
update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
dknell committed Feb 19, 2021
1 parent 476d686 commit f774d42
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 5 deletions.
19 changes: 16 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,26 @@ Terraform module to create the Drata Autopilot Role in AWS
module "drata_autopilot_role" {
source = "git::https://github.com/drata/terraform-aws-drata-autopilot-role.git?ref=master"
role_sts_externalid = "YOUR_EXTERNAL_ID"
}
# optional
role_name = "DrataReadOnly" # defaults to "DrataAutopilotRole"
role_path = "/external/" # defaults to "/security/"
# this will output the Role ARN
output "drata_autopilot_role" {
value = module.drata_autopilot_role.role_arn
}
```

Replace `YOUR_EXTERNAL_ID` with the External ID in the AWS connection panel in Drata

#### The first time you run this, it needs to be initialized

```
$ terraform init
```

#### Apply the changes

```
$ terraform apply
```

After you apply this terraform, it will output the Role ARN that you can paste into the AWS connection panel in Drata to initiate the connection.
4 changes: 2 additions & 2 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ variable "role_name" {
}

variable "role_path" {
description = "Path of IAM role"
description = "Path of IAM role (we currently do not support a path other than '/')"
type = string
default = "/security/"
default = "/"
}

variable "role_description" {
Expand Down

0 comments on commit f774d42

Please sign in to comment.