Hey folks, I need to create few custom API keys in AWSAppSync via terraform. Can it be done or is it always auto generated.
resource "aws_appsync_api_key" "example" {
api_id = aws_appsync_graphql_api.example.id
expires = "2018-05-03T04:00:00Z"
}
maxb
2
Please review the documentation for this resource:
https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/appsync_api_key
You will find there is no argument for specifying the API key, it is only returned as an attribute, meaning that it is always generated.