Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix bad advice on using ".name" property of Role while ignoring path #6285

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions website/docs/r/glue_crawler.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Manages a Glue Crawler. More information can be found in the [AWS Glue Developer
resource "aws_glue_crawler" "example" {
database_name = "${aws_glue_catalog_database.example.name}"
name = "example"
role = "${aws_iam_role.example.name}"
role = "${aws_iam_role.example.arn}"

dynamodb_target {
path = "table-name"
Expand All @@ -32,7 +32,7 @@ resource "aws_glue_crawler" "example" {
resource "aws_glue_crawler" "example" {
database_name = "${aws_glue_catalog_database.example.name}"
name = "example"
role = "${aws_iam_role.example.name}"
role = "${aws_iam_role.example.arn}"

jdbc_target {
connection_name = "${aws_glue_connection.example.name}"
Expand All @@ -47,7 +47,7 @@ resource "aws_glue_crawler" "example" {
resource "aws_glue_crawler" "example" {
database_name = "${aws_glue_catalog_database.example.name}"
name = "example"
role = "${aws_iam_role.example.name}"
role = "${aws_iam_role.example.arn}"

s3_target {
path = "s3://${aws_s3_bucket.example.bucket}"
Expand All @@ -63,7 +63,7 @@ The following arguments are supported:

* `database_name` (Required) Glue database where results are written.
* `name` (Required) Name of the crawler.
* `role` (Required) The IAM role (or ARN of an IAM role) used by the crawler to access other resources.
* `role` (Required) The IAM role friendly name (including path without leading slash), or ARN of an IAM role, used by the crawler to access other resources.
* `classifiers` (Optional) List of custom classifiers. By default, all AWS classifiers are included in a crawl, but these custom classifiers always override the default classifiers for a given classification.
* `configuration` (Optional) JSON string of configuration information.
* `description` (Optional) Description of the crawler.
Expand Down