-
Notifications
You must be signed in to change notification settings - Fork 0
/
output.tf
30 lines (26 loc) · 955 Bytes
/
output.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
output "bucket" {
description = "The name of the S3 Bucket used for Terraform Remote State."
value = aws_s3_bucket.my_bucket.bucket
}
output "dynamodb" {
description = "The DynamoDB Table used for locking the Remote State."
value = aws_dynamodb_table.my_dynamodb_table.name
}
output "role" {
description = "The ARN of the IAM Role that is used to access the Remote State"
value = aws_iam_role.role.arn
}
output "example_backend_configuration" {
description = "Provides an example of what the `backend` configuration would look like in order to use the provisioned Remote State"
value = <<BACKEND
terraform {
backend "s3" {
encrypt = true
bucket = "${aws_s3_bucket.my_bucket.id}"
dynamodb_table = "${aws_dynamodb_table.my_dynamodb_table.id}"
role_arn = "${aws_iam_role.role.arn}"
key = "{some-project-name}" // must be unique across projects
}
}
BACKEND
}