terraform
Terraform Outputs
Example outputs:
output "arn" { value = aws_cognito_user_pool.terraform-test-pool.arn } resource "local_file" "arn_output" { content = aws_cognito_user_pool.terraform-test-pool.arn filename = "outputs/arn.out" directory_permission = "0775" file_permission = "0666" } resource "local_file" "id_output" { content = aws_cognito_user_pool.terraform-test-pool.id filename = "outputs/id.out" directory_permission = "0775" file_permission = "0666" } resource "local_file" "app_id_output" { content = aws_cognito_user_pool_client.terraform_test_cognito_app_client.id filename = "outputs/app_id.out" directory_permission = "0775" file_permission = "0666" } output "base_url" { description = "Base url from api gateway stage" value = aws_apigatewayv2_stage.lambda.invoke_url }
Outputs will print to screen, local_file resources will take values created by resource creation and save them to files which can be used later by code.