Skip to content

Commit

Permalink
add to example, tweak doc
Browse files Browse the repository at this point in the history
  • Loading branch information
automaticgiant committed Aug 30, 2024
1 parent b8ac42f commit 5376a65
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions examples/complete/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,7 @@ module "appsync" {
# Note: dynamic references (module.aws_lambda_function2.lambda_function_arn) do not work unless you create this resource in advance
function_arn = "arn:aws:lambda:eu-west-1:835367859851:function:index_2"
# service_role_arn = "arn:aws:iam::835367859851:role/lambda1-service"
service_role_name = "lambda2-custom-name-service-role"
}

dynamodb1 = {
Expand Down
3 changes: 2 additions & 1 deletion variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -303,11 +303,11 @@ variable "resolver_caching_ttl" {

# Datasources
variable "datasources" {
description = "Map of datasources to create"
description = <<EOF
Map of datasources to create. The key is the name of the datasource and the value is a map of the datasource configuration. The configuration map must contain the following keys:
- type: The type of the datasource. Valid values are: AWS_LAMBDA, AMAZON_DYNAMODB, AMAZON_ELASTICSEARCH, AMAZON_OPENSEARCH_SERVICE, AMAZON_EVENTBRIDGE, RELATIONAL_DATABASE
- service_role_name: The name of the service role, to override default.
- service_role_arn: The ARN of an existing service role
- endpoint: The endpoint of the datasource. Required for AWS_LAMBDA, AMAZON_ELASTICSEARCH, AMAZON_OPENSEARCH_SERVICE
- region: The region of the datasource. Required for AMAZON_DYNAMODB, AMAZON_ELASTICSEARCH, AMAZON_OPENSEARCH_SERVICE
- table_name: The name of the table. Required for AMAZON_DYNAMODB
Expand All @@ -329,6 +329,7 @@ EOF
database_name = optional(string)
schema = optional(string)
service_role_name = optional(string)
service_role_arn = optional(string)
})
})
default = {}
Expand Down

0 comments on commit 5376a65

Please sign in to comment.