Hello, i am trying to run terraform apply on test env and i am getting this error:
2024-05-09T13:55:04.2856577Z e[1me[31mError: e[0me[0me[1mError updating Cognito Identity Provider: InvalidParameterException: Unable to contact well-known endpointe[0m
2024-05-09T13:55:04.2909110Z
2024-05-09T13:55:04.2909725Z e[0m on aws_authorizer.tf line 214, in resource “aws_cognito_identity_provider” “take-cognito-idp-partnerhub”:
2024-05-09T13:55:04.2910104Z 214: resource “aws_cognito_identity_provider” “take-cognito-idp-partnerhub” e[4m{e[0m
2024-05-09T13:55:04.2910322Z e[0m
2024-05-09T13:55:04.2910462Z e[0me[0m
2024-05-09T13:55:04.3032717Z
2024-05-09T13:55:04.3095898Z ##[error]Bash exited with code ‘1’.
2024-05-09T13:55:04.3105175Z ##[section]Finishing: Terraform Apply
I am running this from an Azure DevOps pipeline MS hosted Agent.
I cannot find a concrete solution for this error.
This is the resource block that is affected:
resource “aws_cognito_identity_provider” “take-cognito-idp-partnerhub” {
provider_name = “PartnerHub”
provider_type = “OIDC”
user_pool_id = aws_cognito_user_pool.take-cognito-pool-customers.idprovider_details = {
authorize_scopes = “openid”
attributes_request_method = “GET”
oidc_issuer = lookup(local.context_variables[terraform.workspace], “partnerhub_oidc_issuer”)
client_id = lookup(local.context_variables[terraform.workspace], “partnerhub_client_id”)
}attribute_mapping = {
“custom:restaurantIds” = “rids”
}depends_on = [
aws_cognito_user_pool.take-cognito-pool-customers
]
}
I am searching for any potential solutions ideas on how to solve this,
Thanks !